Pillars

An interactive isometric grid where tiles rise into 3D pillars on hover, powered by the Canvas API.

Example

Component Props

PropTypeDefaultDescription
tileSizenumber64Width of each isometric tile in pixels.
maxRisenumber48Maximum height a pillar can rise in pixels.
hoverRadiusnumber4Hover effect radius in tiles.
easenumber0.3Easing speed (0–1). Higher = faster. Frame-rate independent.
fillstring"#000"Fill color for all tile faces.
strokestring"#222"Stroke color for tile edges (wireframe).
cursorYOffsetnumber1.25Vertical cursor offset as a fraction of tile height.
tileRationumber2Width-to-height ratio of each tile. 2 = dimetric (pixel art style), ~1.732 = true isometric (30°).

Installation