Difference between revisions of "Dimensions"
From Sega Retro
(too tired to do maths) |
(I used to be good at this) |
||
Line 2: | Line 2: | ||
#vardefine:newwidth|{{#expr:({{{1|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{ | #vardefine:newwidth|{{#expr:({{{1|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{ | ||
#vardefine:newheight|{{#expr:({{{2|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{ | #vardefine:newheight|{{#expr:({{{2|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}{{ | ||
− | #vardefine:newdepth|{{#expr:({{{3|}}}/{{#var:highest}})*{{{diagramsize|200}}}}}}}<div style="border:1px solid #F00; max-width:{{{diagramsize|200}}}px; min-width:{{{diagramsize|200}}}px; max-height:{{{diagramsize|200}}}px; min-height:{{{diagramsize|200}}}px;"> | + | #vardefine:newdepth|{{#expr:(({{{3|}}}/{{#var:highest}})*{{{diagramsize|200}}})/2}}}}{{ |
− | + | #vardefine:movex|{{#expr:{{#var:newdepth}} * cos(45)}}}}{{ | |
− | + | #vardefine:movey|{{#expr:{{#var:newdepth}} * sin(45)}}}}<div style="border:1px solid #F00; max-width:{{{diagramsize|200}}}px; min-width:{{{diagramsize|200}}}px; max-height:{{{diagramsize|200}}}px; min-height:{{{diagramsize|200}}}px;">{{ | |
− | + | DrawLine|colour=#009|x1=0|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{ | |
− | + | DrawLine|colour=#009|x1={{#var:newwidth}}|y1={{{diagramsize|200}}}|w={{#var:newheight}}|angle=90}}{{ | |
+ | DrawLine|colour=#009|x1=0|y1={{{diagramsize|200}}}|w={{#var:newwidth}}}}{{ | ||
+ | DrawLine|colour=#009|x1=0|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newwidth}}}}{{ | ||
+ | |||
+ | DrawLine|colour=#090|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newheight}}|angle=90|dashed=yes}}{{ | ||
+ | DrawLine|colour=#090|x1={{#expr:{{#var:movex}} + {{#var:newwidth}}}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newheight}}|angle=90}}{{ | ||
+ | DrawLine|colour=#090|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:movey}}}}|w={{#var:newwidth}}|dashed=yes}}{{ | ||
+ | DrawLine|colour=#090|x1={{#var:movex}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}-{{#var:movey}}}}|w={{#var:newwidth}}}}{{ | ||
+ | |||
+ | DrawLine|colour=#909|x1={{#var:newwidth}}|y1={{{diagramsize|200}}}|w={{#var:newdepth}}|angle=45}}{{ | ||
+ | DrawLine|colour=#909|x1={{#var:newwidth}}|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newdepth}}|angle=45}}{{ | ||
+ | DrawLine|colour=#909|x1=0|y1={{{diagramsize|200}}}|w={{#var:newdepth}}|angle=45|dashed=yes}}{{ | ||
+ | DrawLine|colour=#909|x1=0|y1={{#expr:{{{diagramsize|200}}}-{{#var:newheight}}}}|w={{#var:newdepth}}|angle=45}} | ||
</div> | </div> | ||
*{{{1|}}} -> {{#var:newwidth}} | *{{{1|}}} -> {{#var:newwidth}} | ||
Line 13: | Line 25: | ||
</includeonly> | </includeonly> | ||
<noinclude> | <noinclude> | ||
− | {{Dimensions|20|30| | + | {{Dimensions|20|30|60}} |
+ | {{Dimensions|60|30|20}} | ||
+ | {{Dimensions|20|60|30}} | ||
[[Category:Sega Retro templates]] | [[Category:Sega Retro templates]] | ||
</noinclude> | </noinclude> |
Revision as of 14:11, 20 June 2018
- 20 -> 66.666666666667
- 30 -> 100
- 60 -> 100
- 60 -> 200
- 30 -> 100
- 20 -> 33.333333333333
- 20 -> 66.666666666667
- 60 -> 200
- 30 -> 50