This wiki is closed in favour of the new wiki. Information shown is likely to be very out of date. |
Difference between revisions of "User:Space/Template:DrawLine"
From Discovery Wiki
Jump to navigationJump to searchm (Forgot to convert it to degrees somewhere along the way.) |
m |
||
Line 1: | Line 1: | ||
− | <noinclude><nowiki>{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px}}</nowiki></noinclude> | + | <noinclude><nowiki>{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px|valid css color code or name (default: grey)}}</nowiki></noinclude> |
− | <includeonly> <div style="-webkit-transform-origin: 0 100%; -webkit-transform:rotate({{#expr:{{atan2|y={{#expr:{{{4}}}-{{{2}}}}}|x={{#expr: {{{3}}}-{{{1}}}}}}}*180/pi}}deg); width: {{#expr: (({{{1}}}-{{{3}}})^2+({{{2}}}*{{{4}}})^2)^0.5}}px; height: {{{5}}}px; background: # | + | <includeonly> <div style="-webkit-transform-origin: 0 100%; -webkit-transform:rotate({{#expr:{{atan2|y={{#expr:{{{4}}}-{{{2}}}}}|x={{#expr: {{{3}}}-{{{1}}}}}}}*180/pi}}deg); width: {{#expr: (({{{1}}}-{{{3}}})^2+({{{2}}}*{{{4}}})^2)^0.5}}px; height: {{{5}}}px; background: {{#if: {{{6}}} | {{{6}}} | grey }};"></div> {{atan2|y={{#expr:{{{4}}}-{{{2}}}}}|x={{#expr: {{{3}}}-{{{1}}}}}}}</includeonly> |
− | <noinclude>Test: {{User:Space/Template:DrawLine|0|0|-60|-90|3}}</noinclude> | + | <noinclude>Test: {{User:Space/Template:DrawLine|0|0|-60|-90|3|}}</noinclude> |
Revision as of 13:01, 8 April 2013
{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px|valid css color code or name (default: grey)}}
Test:
-2.1587989303425