03 Drawing a Robot

How can I compose geometric shapes to draw a robot?

Vocabulary

Parameters, point(x, y), line(x1, y1, x2, y2), rect(x, y, width, height ), ellipse(x, y, width, height), quad(), triangle(), Reference, Semantic HTML

Study Questions

  1. What possible shapes can we draw in p5.js and how?
  2. Is there an order to the parameters for functions that produce 2D Primitive shapes (Explore shapes category in Reference)?
  3. How can Reference help us grow further in programming?
  4. What is the purpose of semantic HTML tags when <div> can accomplish the task just as well?

Activity

  • Watch Video #1 (below)
  • Use the p5js grid paper attached below to draw a robot using only 2D shapes (Try and stick to points, lines, rectangles, quads, and ellipses mainly).
  • Translate your drawing into p5.js canvas.
  • Create a styled webpage using the layout as shown below. Pay attention to spacing (margin,padding,borders).
  • Remember to use the right column to describe attributes or characteristics of your made-up robot.
  • Answer the vocabulary and study questions from this lesson. All descriptions must be in your own words and relevant in regards to our class.

Resources

  1. Video: 03 Drawing a Robot in p5.js
  2. Link: Play & Learn basic shapes
  3. Link: p5.js cheat sheet for beginners
  4. Link: Semantic HTML
  5. P5js Graph Paper: p5.js Grid Paper 400 by 400
  6. P5js Graph Paper: p5.js Grid Paper 400 by 600
  7. P5js Graph Paper: p5.js Grid Paper 600 by 400 -LANDSCAPE
  8. P5js Graph Paper: p5.js Grid Paper 600 by 800
  9. P5js Graph Paper: p5.js Grid Paper 600 by 800 - Legal -LANDSCAPE