Guest User

Untitled

a guest
May 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scheme 0.53 KB | None | 0 0
  1.    
  2.      (define (make-path-line ctx x y width path)
  3.        (define (iter p)
  4.          (if (null? p)
  5.              (canvas-close-path ctx)
  6.              (let ((np (car p)))
  7.                ;(alert np)
  8.                (canvas-line-to ctx (car np) (cdr np))
  9.                (canvas-move-to ctx (car np) (cdr np))
  10.                (iter (cdr p))))
  11.        )
  12.      ;  (alert "path of line" path)
  13.  
  14.        (canvas-begin-path ctx)
  15.        (canvas-close-path ctx)
  16.        (canvas-move-to ctx x y)
  17.        (iter path)
  18.      
  19.              
  20.        )
Add Comment
Please, Sign In to add comment