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 (They didn't, and I need to) |
m |
||
Line 9: | Line 9: | ||
<!-- Renders the line --> | <!-- Renders the line --> | ||
<div style="-webkit-transform-origin: 0 100%; height: {{{5}}}px; background: #000;"></div> | <div style="-webkit-transform-origin: 0 100%; height: {{{5}}}px; background: #000;"></div> | ||
+ | |||
+ | <noinclude>Test: {{User:Space/Template:DrawLine|2|2|8|9|3}}</noinclude> | ||
<noinclude><!-- var length = Math.sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)); | <noinclude><!-- var length = Math.sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)); | ||
Line 17: | Line 19: | ||
theta *= 180/pi // rads to degs | theta *= 180/pi // rads to degs | ||
$angle = rad2deg(atan2(($y2 - $y1), ($x2 - x1))); | $angle = rad2deg(atan2(($y2 - $y1), ($x2 - x1))); | ||
− | --> | + | --></noinclude> |
− | |||
− |
Revision as of 11:10, 8 April 2013
{{User:Space/Template:DrawLine|x1|y1|x2|y2|width in px}} Expression error: Unrecognized punctuation character "{".
Expression error: Unexpected ( operator.
Test: 18.97366596101
Expression error: Unexpected ( operator.