Problem Set 03:

Due 10-04 (7 days)

Reading:

Optional Reading & Reference:

ps-03

a – 'Square composition II':

b (optional) – Revisit ps-02:

Modify the HTML or CSS from any of your ps-02 solutions to improve layout & styling.

c (stretch) – Sol LoWitt Canvas:

To complete item 'c' here, you may want to review the MDN Canvas API

Source of ps-03 starter:

<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>canvas starter document</title>
    <style media="screen">
      body {
        font-family: 'helvetica', sans-serif;
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0px;
        bottom: 0px;
        left: 0px;
        right: 0px;
      }
      canvas {
        border: 1px solid hsl(0,10%,90%);
        width: auto;
        height: 50%;
      }
    </style>
  </head>

  <body>
    <canvas id="canvas" width="500" height="500"></canvas>
  </body>

  <script type="text/javascript">
    var canvas = document.getElementById('canvas');
    var drawingPad = canvas.getContext('2d');
    drawingPad.fillStyle = "hsla(0,10%,10%,1)";
    drawingPad.fillRect(0, 0, 20, 20);
  </script>

</html>