📐 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 |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準