Please enable JavaScript to use CodeHS

Demos

Slinky


Tracy will draw a slinky with 5 loops.

Circle Square Triangle


This code will draw a red circle, blue square, and yellow triangle all using the `circle()` command.

Color Coded Increasing Length


This program will draw a horizontal line with hash marks at 25, 50, 100, and 200 pixels which have a thickness given by the user. Before drawing each mark, the user will be asked for a color and the mark will be drawn in that color.