Terrapin Resources

Draw a Wheel of Colors

This is a classic example of how you can create stunning graphics in just a few lines of Logo code.

Add SETSPEED .99 if you want to see how it is drawn by a slower turtle.

ColorSpray.lgo

TO COLOR.SPRAY
    CS
    SETBG 0
    SETWIDTH 25
    REPEAT 180 [SETPC RANDOM 15 FD 100 BK 100 RT 2]
END

COLOR.SPRAY

Procedure COLOR.SPRAY
Description Draws a color wheel
Level Beginner
Tags Drawing, Colors, Turtle