Skip to content

Instantly share code, notes, and snippets.

@rdsr rdsr/draw_line.ss
Created Nov 16, 2010

Embed
What would you like to do?
(define image (line 0 0 'white))
(define (draw-line v1 v2)
(set! image
(add-line image
(xcor-vect v1) ; x-coordinate ...etc
(ycor-vect v1)
(xcor-vect v2)
(ycor-vect v2)
'black)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.