Logomation Lesson 14

A function can have more than one parameter. The first value sent goes into the first variable and the second value into the second variable. Variables and values are separated by commas.

Function drawSquare(r, g, b)

Color r, g, b

Width 5

Repeat 4

Forward 120

Right 90

drawSquare(0.6, 0.7, 0.2)


On your own #14:

The n-sided Polygon
make a function to draw a polygon with n sides each having a length x and test it by drawing 3 polygons one with 3 to 6 sides, one 7 to 12 sides and one more 13 to 20 sides


Click here to go to Lesson (your likely age here)

Go back to the Lesson List page