Page 1 of 1

Programming 4 In JavaScript (Canvas)

PostPosted: Wed Feb 10, 2010 10:03 am
by Saebekassebil
Hey everybody. I'm trying to figure out programming challenge 4, and implement the render in Javascript.
Actually i think i got the most right, but there's something wrong with the arcs. I guess it's because i don't understand the values I'm given. What does ArcExtend stand for?
Well, anyways, here's my code, hope somebody can help me. The Arc rendering is put in the "drawArc" function of XMLParser

[Removed by: Defience]

Re: Programming 4 In JavaScript (Canvas)

PostPosted: Sun Mar 07, 2010 6:35 pm
by shill
Code: Select all
void arc(in float x, in float y, in float radius, in float startAngle, in float endAngle, in boolean anticlockwise);


I would think ArcExtend simply means endAngle.

edit: don't take my word on that. maybe it means the difference between startAngle and endAngle. try both