Advertisement
Guest User

Untitled

a guest
Jun 6th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (ns laser.core
  2.     (:use quil.core)
  3.     (:import codeanticode.gsvideo.GSCapture
  4.              codeanticode.gsvideo.GSLibraryLoader
  5.              codeanticode.gsvideo.GSLibraryPath
  6.              codeanticode.gsvideo.GSMovie
  7.              codeanticode.gsvideo.GSPipeline
  8.              codeanticode.gsvideo.GSPlayer
  9.              codeanticode.gsvideo.GSVideo
  10.              deadpixel.keystone.Keystone
  11.              deadpixel.keystone.Draggable
  12.              deadpixel.keystone.MeshPoint
  13.              deadpixel.keystone.CornerPinSurface
  14.              edu.bard.drab.PCLT.Homography
  15.              edu.bard.drab.PCLT.LaserPoint
  16.              edu.bard.drab.PCLT.PCLT
  17.              processing.core.PGraphics
  18.              processing.core.PGraphics2D
  19.              ))
  20.  
  21. ;PImage
  22. ;(def last)
  23.  
  24. (def menu-size 75)
  25. (def mode 0)
  26. (def options 0)
  27. (def PEN 1)
  28. (def LINE 2)
  29. (def CIRCLE 3)
  30. (def RECT 4)
  31. (def CLEAR 5)
  32. ;(def video (GSCapture. 160 120 "/dev/video0"))
  33. ;
  34. ;(def surface (CornerPinSurface. ))
  35. (def sbc 270)
  36.  
  37.  
  38. (defn setup []
  39.     (smooth)
  40.     (color-mode :rgb)
  41.     (def c (color 255 255 255))
  42.     (def offscreen (create-graphics 848 480 "P2D"))
  43.     )
  44.  
  45. (defsketch laser
  46.     :title "Laser tracking example"
  47.     :setup setup
  48.     :size[848 480]
  49.     )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement