wps

PostScript for the Web
git clone https://logand.com/git/wps.git/
Log | Files | Refs | LICENSE

squares2.wps (215B)


      1 % based on the JavaScript example from
      2 % https://developer.mozilla.org/en/drawing_graphics_with_canvas
      3 
      4 0 0 100 100 .gbox
      5 
      6 q
      7 0.8 0 0 rg
      8 0 0 m
      9 10 10 55 50 re
     10 f
     11 0 0 0.8 rg
     12 0.5 .setGlobalAlpha
     13 0 0 m
     14 30 30 55 50 re
     15 f
     16 Q