Graphic JavaScript


Back to index
NESTED TRIANGLES:

Repeatedly calling a function within a for-loop is the
method used to produce the following set of nested
triangles:
Your browser does not support the HTML5 canvas tag.

ASSIGNMENT:

Replicate the SVG design shown here as a JavaScript applet. Write a function called circ which takes four arguments (xcenter, ycenter, radius, and color). Store the values in arrays and call the drawCIRC function from within a for-loop.