This is a documentation for Board Game Arena: play board games online !

Template:HiveGrasshopper: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
(Template:HexMap coordinates)
(variables)
Line 2: Line 2:
|bg=transparent
|bg=transparent
|w=68
|w=68
|r=(1 - clamp(0,{{{ft|0}}},1))
|x={{{x|1}}}
|x={{{x|1}}}
|y={{{y|1}}}
|y={{{y|1}}}
Line 15: Line 16:
|bg=transparent
|bg=transparent
|w=68
|w=68
|r=calc({{{r|0}}}*2)
|r={{{r|0}}}
|{{gameIcon
|{{gameIcon
|tooltip=Grasshopper
|tooltip=Grasshopper
Line 55: Line 56:
   <div><code><nowiki>{{hiveGrasshopper |r=1 }}</nowiki></code></div>
   <div><code><nowiki>{{hiveGrasshopper |r=1 }}</nowiki></code></div>
   <div>{{hiveGrasshopper |r=1 }}</div>
   <div>{{hiveGrasshopper |r=1 }}</div>
   <div>'''''Optional:''''' rotate in units of 60° (<code>0</code>-<code>5</code>).</div>
   <div>'''''Optional:''''' rotate in units of 30° (<code>0</code>-<code>11</code>).</div>
  <div><code>ft</code></div>
  <div><code>0</code></div>
  <div><code><nowiki>{{hiveGrasshopper |ft=1 }}</nowiki></code></div>
  <div>{{hiveGrasshopper |ft=1 }}</div>
  <div>'''''Optional:''''' transform from pointed-top hex (<code>0</code>) to flat-top hex (<code>1</code>).</div>
</div>
</div>


[[Category:HiveIcons]]
[[Category:HiveIcons]]
</noinclude>
</noinclude>

Revision as of 21:51, 23 May 2024

​
Grasshopper

Parameters

Parameter
Default value
Example
Result
Description
1
0
{{hiveGrasshopper |1 }}
​
Grasshopper
Optional: dark (0) / light (1).
x
1
{{hiveGrasshopper |x=3 }}
​
Grasshopper
Optional: specify the x co-ordinate of the hex on a Template:HexMap.
y
1
{{hiveGrasshopper |y=2 }}
​
Grasshopper
Optional: specify the y co-ordinate of the hex on a Template:HexMap.
r
0
{{hiveGrasshopper |r=1 }}
​
Grasshopper
Optional: rotate in units of 30° (0-11).
ft
0
{{hiveGrasshopper |ft=1 }}
​
Grasshopper
Optional: transform from pointed-top hex (0) to flat-top hex (1).