📐 Isometric Grid Generator

📐 工作原理与说明
格子大小 s 指同一方向相邻平行线的水平间距,钳制在 10–200(默认 40);线宽钳制在 1–5(默认 1)。用两组 repeating-linear-gradient 分别按 30°、150° 无限重复绘制平行线,垂直方向周期为 s·sin30° = 0.5s(且不小于线宽 +1px),因此相邻 tile 的斜线天然连续、无接缝,两组线交叉形成菱形等距网格
等距网格由 30° / 150° 斜线按固定步距平铺构成菱形格,网格尺寸与配色可调并复制 CSS 代码;用于 2.5D 游戏地图、插画底图与示意图。

Generate an isometric (2.5D) grid background with adjustable cell size and colours for game maps, illustrations and diagrams.

📚 深度解析:等距网格

💡 常见使用场景

  • 等距插画底。
  • 架构示意图。
  • 游戏地图。
生成等距格

输入:格距、线色。

处理:菱形网格平铺。

输出:背景预览与代码/图。结果以浏览器实时计算为准,纯前端本地处理、数据不上传;生成的样式与代码仅作快速产出参考,正式项目请以设计系统、规范与浏览器实测为准。

❓ 常见问题(FAQ)

等距和正交?
等距呈 30° 菱形,更有立体感;正交为正方格。结果以浏览器实时计算为准,纯前端本地处理、数据不上传;生成的样式与代码仅作快速产出参考,正式项目请以设计系统、规范与浏览器实测为准。
处理大图会卡吗?
本工具只生成 CSS 背景代码,计算量极小、实时预览不会卡顿;数据不上传,纯前端本地处理。
会保存或上传我的内容吗?
结果以浏览器实时计算为准,纯前端本地处理、数据不上传;生成的样式与代码仅作快速产出参考,正式项目请以设计系统、规范与浏览器实测为准。

Formula & Standard References

Item Formula / Note Source / Standard
Axonometric projection three axes sit 120 degrees apart with equal foreshortening Isometric projection geometry
Diamond cell parallel lines of each family are 0.5s apart perpendicular to their direction; the diamonds come from the 30° and 150° families crossing, and cell size s is the horizontal spacing between lines of the same family Isometric geometry
Triangular pitch equilateral height is side times root three over two Euclidean geometry
⚠️ 使用说明与注意事项