Sign In
Learning Math/CS/Engineering Design with Robotics
Grid Size: S M L Simple View: MinView:
Background Image
Coord: x-axis y-axis Grid Lines: x-axis y-axis
Grid: 12x12 inches 24x24 inches 36x36 inches
72x72 inches 96x96 inches 192x192 inches
1x1 inches 2x2 inches Fraction:
Quad: 1 Quadrant 4 Quadrants 1&4 Quadrants
Units: US Customary Metric Ruler:
Font px
Tics Lines:
Width px
Hash Lines:
Width px

The pre-placed blocks draw the two trees in the distance and provide a function called drawTrees which draws trees at given x and y coordinates at a scale of s. Add more blocks to animate the trees moving closer. The movement of the trees should follow the green lines. The center of the green triangles should always be on the green lines. The left line has a slope of 2/3 and the right line has a slope of -2/3. As the trees get closer, they should also get bigger.

Workspace Load Save C C Prompt Console