wps

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

smile.wps (309B)


      1 % based on the JavaScript example from
      2 % http://developer.mozilla.org/samples/canvas-tutorial/2_2_canvas_moveto.html
      3 
      4 0 0 150 150 .gbox
      5 
      6 %0 0 m % TODO m op meaning?
      7 newpath
      8 75 75 50 0 360 arc % TODO pdf way to draw arc?
      9 S
     10 110 75 m
     11 75 75 35 0 180 arcn
     12 S
     13 65 65 m
     14 60 65 5 0 360 arc
     15 S
     16 95 65 m
     17 90 65 5 0 360 arc
     18 S