Copy JavaScript functionality of a website

timer Asked: Jun 2nd, 2013

Question Description

I’m studying for my Programming class and need an explanation.

I would like to copy the script that is currently on this site:
It uses JavaScript to render these dancing bezier curves in different colors.

Unfortunately, I get a little confused when I look at their source, because I think what they are using may be doing other things as well. For some reason it incorporates scripts from a site called and rocketscript and I cannot figure it all out for the life of me.

Any help would be appreciated, all I want is to be able to render some similar dancing lines as the background of a webpage, so if there is an easier way without figuring out what my example website is doing, that would be great. I'm sure I can write myself a script that replicates this if someone could tell me how to script even one animated curved line using the canvas feature of html.

I am not a total noob, but JavaScript really isn't my forte. Sorry if the answer is obvious and thank you for your time.

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

This question has not been answered.

Create a free account to get help with this and any other question!

Brown University

1271 Tutors

California Institute of Technology

2131 Tutors

Carnegie Mellon University

982 Tutors

Columbia University

1256 Tutors

Dartmouth University

2113 Tutors

Emory University

2279 Tutors

Harvard University

599 Tutors

Massachusetts Institute of Technology

2319 Tutors

New York University

1645 Tutors

Notre Dam University

1911 Tutors

Oklahoma University

2122 Tutors

Pennsylvania State University

932 Tutors

Princeton University

1211 Tutors

Stanford University

983 Tutors

University of California

1282 Tutors

Oxford University

123 Tutors

Yale University

2325 Tutors