Programming 4 In JavaScript (Canvas)

Put your programming skills to the test in these challenges.

Programming 4 In JavaScript (Canvas)

Post by Saebekassebil on Wed Feb 10, 2010 10:03 am
([msg=34797]see Programming 4 In JavaScript (Canvas)[/msg])

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]
Saebekassebil
New User
New User
 
Posts: 1
Joined: Tue Jun 10, 2008 1:59 am
Blog: View Blog (0)


Re: Programming 4 In JavaScript (Canvas)

Post by shill on Sun Mar 07, 2010 6:35 pm
([msg=36269]see Re: Programming 4 In JavaScript (Canvas)[/msg])

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
shill
New User
New User
 
Posts: 10
Joined: Mon Jan 11, 2010 2:50 pm
Blog: View Blog (0)



Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron