Step 16: Coding the Canvas (Part 1)

Goal:


Now that we have our picture being shown in the Canvas next is the code to let us doodle on it.

Steps:

  1. Under the section labeled Blocks select Canvas1.
  2. Grab and place the block labeled “when Canvas1.Dragged”.
  3. Under Blocks select Canvas1.
  4. Grab and place the block labeled “call Canvas1.DrawLine”.

Code:


Click to replay