mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-16 17:31:24 +01:00
Update grid overlay to add tilings (#1030)
* Update grid overlay to add tilings Added square rotated 45 degrees, truncated square tiling, tetrakis square, triangular tiling, trihexagonal tiling and rhombille tiling with rhombus. Inspired by these uniform tilings: https://en.wikipedia.org/wiki/List_of_Euclidean_uniform_tilings * Fixed stroke width of grid tilings The stroke width of: - Tetrakis square. - Truncated square. - Triangle tiling. - Rhombille tiling. Now has all the same stroke width. * Updated grid to 25 px regular Fixed triangular and rhombic, rhombille. * fix typo on pattern triangle index.html fix * added wiki link and info icon - icon-info-circled - wiki article scale and distance * Center to center distance Updated svg to adjust distance to center to center cell instead of svg side. - Square 45 degrees - Triangular - Rhombille
This commit is contained in:
parent
b273c77166
commit
473b62b3eb
1 changed files with 31 additions and 0 deletions
31
index.html
31
index.html
|
|
@ -1082,6 +1082,13 @@
|
|||
<option value="pointyHex">Hex grid (pointy)</option>
|
||||
<option value="flatHex">Hex grid (flat)</option>
|
||||
<option value="square">Square grid</option>
|
||||
<option value="square45deg">Square 45 degrees grid</option>
|
||||
<option value="squareTruncated">Truncated square grid</option>
|
||||
<option value="squareTetrakis">Tetrakis square grid</option>
|
||||
<option value="triangleHorizontal">Triangle grid (horizontal)</option>
|
||||
<option value="triangleVertical">Triangle grid (vertical)</option>
|
||||
<option value="trihexagonal">Trihexagonal grid</option>
|
||||
<option value="rhombille">Rhombille grid</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -1094,6 +1101,9 @@
|
|||
id="styleGridSizeFriendly"
|
||||
data-tip="Distance between grid cell centers (in map scale)"
|
||||
></output>
|
||||
<a href="https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Scale-and-distance#grids" target="_blank">
|
||||
<span data-tip="Open wiki article scale and distance to know about grid scale" class="icon-info-circled pointer"></span>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
@ -7843,6 +7853,27 @@
|
|||
<pattern id="pattern_flatHex" width="43.4" height="25" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 43.4,0 36.2,12.5 43.4,25 M 21.7,12.5 H 36.2 Z M 0,0 H 14.5 L 21.7,12.5 14.5,25 H 0" />
|
||||
</pattern>
|
||||
<pattern id="pattern_square45deg" width="35.355" height="35.355" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 0 0 L 35.355 35.355 M 0 35.355 L 35.355 0" />
|
||||
</pattern>
|
||||
<pattern id="pattern_squareTruncated" width="25" height="25" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 8.33 25 L 0 16.66 V 8.33 L 8.33 0 16.66 0 25 8.33 M 16.66 25 L 25 16.66 L 25 8.33 M 8.33 25 L 16.66 25" />
|
||||
</pattern>
|
||||
<pattern id="pattern_squareTetrakis" width="25" height="25" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 25 0 L 0 0 0 25 M 0 0 L 25 25 M 0 25 L 25 0 M 12.5 0 L 12.5 25 M 0 12.5 L 25 12.5 M 0 25 L 25 25 L 25 0" />
|
||||
</pattern>
|
||||
<pattern id="pattern_triangleHorizontal" width="41.76" height="72.33" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 41.76 36.165 H 0 L 20.88 0 41.76 36.165 20.88 72.33 0 36.165 M 0 0 H 72.33 M 0 72.33 L 41.76 72.33" />
|
||||
</pattern>
|
||||
<pattern id="pattern_triangleVertical" width="72.33" height="41.76" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 36.165 0 L 0 20.88 36.165 41.76 72.33 20.88 36.165 0 V 41.76 M 0 0 V 72.33 M 72.33 0 L 72.33 41.76">
|
||||
</pattern>
|
||||
<pattern id="pattern_trihexagonal" width="25" height="43.4" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 25 10.85 H 0 L 18.85 43.4 25 32.55 H 0 L 18.85 0 25 10.85" />
|
||||
</pattern>
|
||||
<pattern id="pattern_rhombille" width="82.5" height="50" patternUnits="userSpaceOnUse" fill="none">
|
||||
<path d="M 13.8 50 L 0 25 13.8 0 H 41.2 L 27.5 25 41.2 50 55 25 41.2 0 68.8 0 82.5 25 68.8 50 M 0 25 H 27.5 M 55 25 H 82.5 M 13.8 50 H 41.2 L 68.8 50" />
|
||||
</pattern>
|
||||
</g>
|
||||
|
||||
<g id="defs-hatching">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue