Code editor, Manduka mandala
64 Pada devta grid
The 8 by 8 Vastu Purusha Mandala, worked out on your plot by plain JavaScript. Change a table or a formula on the left and the grid on the right redraws as you type. Drag the plot corners to try other shapes.
- 32 zones of 11.25°
- Rings at 1/4, 1/2 and 3/4 of the way out
- North on the N4 and N5 line
- 45 devtas
- Runs in your browser
Running the code...
Devta areas
Totals appear here once the code has run.
Hover a row to find that devta on the drawing. Bhumi groups: Brahm Bhumi, Dev Bhumi, Manushya Bhumi, Pishach Bhumi.
Plot corners
x runs to the right and y runs down the page.
Set north from a wall
Stand facing out through a wall, read the compass, and enter that bearing. The drawing turns so the grid matches.
Current setting: the top of the drawing faces 0°.
- Drag a corner on the drawing to move it. Hold Alt for fine steps.
- Drag the small orange dot on a wall to add a corner there.
- Double-click a corner to remove it, or select it and press Delete.
- Drag the centre to place it by hand. Double-click it to go back to the automatic centre.
The method
How the 64 Pada grid is worked out
The Manduka mandala is a square of 8 by 8 padas. To lay it on a plot of any shape, the code measures everything from the centre of the plot, so the same proportions hold on a rectangle, a cut corner or an L-shaped plot.
- 1
Find the centre
Mass gravity uses the centre of mass of the outline. Square uses the middle of the bounding rectangle, where its diagonals cross. You can also drag the centre by hand. - 2
Read every direction as a bearing
Each point gets a compass bearing from the centre. The "Top of drawing faces" setting turns the drawing, so 0° means North is straight up the page. - 3
Cut the circle into 32 zones
Every zone is 11.25° wide. Zone N4 runs from 348.75° to 360°, so true North is the line between N4 and N5. - 4
Cut each zone into bands
The way from the centre to the plot edge is cut at 1/4, 1/2 and 3/4. With 4 padas from the centre to the edge of an 8 by 8 square, these are its first three pada rings. - 5
Give every band a devta
Corner zones (1, 2, 7 and 8 on each side) use four bands. Middle zones (3 to 6) use three, and their outer devta runs from 1/2 all the way to the edge. - 6
Follow the plot shape
Ring lines are the plot outline shrunk towards the centre, and each cell is clipped to its zone wedge. On any shape the cells add up to the whole plot.
Devta in each zone and band
Read each row from the centre outwards. In the middle zones the last devta covers both outer bands.