(defn copy-pixels
" Processing copy function. "
([^PApplet sketch [sx1 sy1 sx2 sy2] [dx1 dy1 dx2 dy2]]
(.copy sketch (int sx1) (int sy1) (int sx2) (int sy2)
(int dx1) (int dy1) (int dx2) (int dy2)))
([^PApplet sketch ^PImage img [sx1 sy1 sx2 sy2] [dx1 dy1 dx2 dy2]]
(.copy sketch img (int sx1) (int sy1) (int sx2) (int sy2)
(int dx1) (int dy1) (int dx2) (int dy2))))
Comments top
No comments for copy-pixels. Log in to add a comment.