[ - ] incanter.processing
  1. ADD
    var
  2. ALPHA
    var
  3. ALPHA_MASK
    var
  4. ALT
    var
  5. AMBIENT
    var
  6. ARC
    var
  7. ARGB
    var
  8. BACKSPACE
    var
  9. BASELINE
    var
  10. BLEND
    var
  11. BLUE_MASK
    var
  12. BLUR
    var
  13. BOTTOM
    var
  14. BOX
    var
  15. BURN
    var
  16. CENTER
    var
  17. CHATTER
    var
  18. CLOSE
    var
  19. CMYK
    var
  20. COMPLAINT
    var
  21. CONCAVE_POLYGON
    var
  22. CONTROL
    var
  23. CONVEX_POLYGON
    var
  24. CORNER
    var
  25. CORNERS
    var
  26. CUSTOM
    var
  27. DARKEST
    var
  28. DEG_TO_RAD
    var
  29. DELETE
    var
  30. DIAMETER
    var
  31. DIFFERENCE
    var
  32. DILATE
    var
  33. DIRECTIONAL
    var
  34. DODGE
    var
  35. DOWN
    var
  36. DXF
    var
  37. ELLIPSE
    var
  38. ENTER
    var
  39. EPSILON
    var
  40. ERODE
    var
  41. ESC
    var
  42. EXCLUSION
    var
  43. GRAY
    var
  44. GREEN_MASK
    var
  45. HALF_PI
    var
  46. HARD_LIGHT
    var
  47. HSB
    var
  48. IMAGE
    var
  49. INVERT
    var
  50. JAVA2D
    var
  51. LEFT
    var
  52. LIGHTEST
    var
  53. LINE
    var
  54. LINES
    var
  55. LINUX
    var
  56. MACOSX
    var
  57. MAX_FLOAT
    var
  58. MAX_INT
    var
  59. MIN_FLOAT
    var
  60. MIN_INT
    var
  61. MODEL
    var
  62. MULTIPLY
    var
  63. NORMAL
    var
  64. NORMALIZED
    var
  65. OPAQUE
    var
  66. OPEN
    var
  67. OPENGL
    var
  68. ORTHOGRAPHIC
    var
  69. OTHER
    var
  70. OVERLAY
    var
  71. P2D
    var
  72. P3D
    var
  73. PATH
    var
  74. PDF
    var
  75. PERSPECTIVE
    var
  76. PI
    var
  77. POINT
    var
  78. POINTS
    var
  79. POLYGON
    var
  80. POSTERIZE
    var
  81. PROBLEM
    var
  82. PROJECT
    var
  83. QUAD
    var
  84. QUADS
    var
  85. QUAD_STRIP
    var
  86. QUARTER_PI
    var
  87. RADIUS
    var
  88. RAD_TO_DEG
    var
  89. RECT
    var
  90. RED_MASK
    var
  91. REPLACE
    var
  92. RETURN
    var
  93. RGB
    var
  94. RIGHT
    var
  95. ROUND
    var
  96. SCREEN
    var
  97. SHIFT
    var
  98. SOFT_LIGHT
    var
  99. SPHERE
    var
  100. SPOT
    var
  101. SQUARE
    var
  102. SUBTRACT
    var
  103. TAB
    var
  104. THIRD_PI
    var
  105. THRESHOLD
    var
  106. TOP
    var
  107. TRIANGLE
    var
  108. TRIANGLES
    var
  109. TRIANGLE_FAN
    var
  110. TRIANGLE_STRIP
    var
  111. TWO_PI
    var
  112. UP
    var
  113. WINDOWS
    var
  114. alpha
    fn ([sketch what])
  115. ambient
    fn ([sketch rgb])
  116. ambient-light
    fn ([sketch red green blue] [sketch red green blue x y z])
  117. apply-matrix
    fn ([sketch n00 n01 n02 n10 n11 n12] [sketch n00 n01 n02 n03 n10 n11 n12 n13 n20 n21 n22 n23 n30 n31 n32 n33])
  118. arc
    fn ([sketch a b c d start stop])
  119. background
    fn ([sketch gray] [sketch gray alpha] [sketch r g b] [sketch r g b a])
    Examples:
    (use 'incanter.processing)
    (def sktch (sketch))
    (background sktch (color 255 0 255))
    (draw sktch)
    (background sktch (color 255 0 255 255)) ;; with alpha value
    (draw sktch)
    (background sktch (color "0xFF00FF"))
    (draw sktch)
    (background sktch (color 0xFF00FF))
    (draw sktch)
    (background sktch (color -65281))
    (draw sktch)
    (background sktch (color 0xFFFF00FF true)) ;; with alpha? true
    (draw sktch)
    (background sktch (color 0xFF 0x00 0xFF))
    (draw sktch)
    (background sktch (color 0xFF 0x00 0xFF 0xFF)) ;; with alpha value
    (draw sktch)
    (background sktch (color 1.0 0.0 1.0))
    (draw sktch)
    (background sktch (color 1.0 0.0 1.0 1.0)) ;; with alpha value
    (draw sktch)
  120. background-image
    fn ([sketch img])
  121. begin-camera
    fn ([sketch])
  122. begin-raw
    fn ([sketch rawGfx] [sketch renderer filename])
  123. begin-shape
    fn ([sketch] [sketch kind])
  124. bezier
    fn ([sketch x1 y1 x2 y2 x3 y3 x4 y4] [sketch x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4])
  125. bezier-detail
    fn ([sketch detail])
  126. bezier-point
    fn ([sketch a b c d t])
  127. bezier-tangent
    fn ([sketch a b c d t])
  128. bezier-vertex
    fn ([sketch x2 y2 x3 y3 x4 y4] [sketch x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4])
  129. blend
    fn ([sketch sx1 sy1 sx2 sy2 dx1 dy1 dx2 dy2 mode] [sketch src sx1 sy1 sx2 sy2 dx1 dy1 dx2 dy2 mode])
  130. blend-color
    fn ([c1 c2 mode])
  131. blue
    fn ([sketch what])
  132. box
    fn ([sketch size] [sketch w h d])
  133. brightness
    fn ([sketch what])
  134. camera
    fn ([sketch] [sketch eyeX eyeY eyeZ centerX centerY centerZ upX upY upZ])
  135. can-draw?
    fn ([sketch])
  136. ceil
    fn ([n])
  137. char->text
    fn ([sketch c] [sketch c x y] [sketch c x y z])
  138. color
    fn ([rgb] [rgb alpha?] [x y z] [x y z alpha])
    Examples:
    (use 'incanter.processing)
    (color 255 0 255)
    (color 255 0 255 255) ;; with alpha value
    (color "0xFF00FF")
    (color 0xFF00FF)
    (color -65281)
    (color 0xFFFF00FF true) ;; with alpha? true
    (color 0xFF 0x00 0xFF)
    (color 0xFF 0x00 0xFF 0xFF) ;; with alpha value
    (color 1.0 0.0 1.0)
    (color 1.0 0.0 1.0 1.0) ;; with alpha value
  139. color-mode
    fn ([sketch mode] [sketch mode max] [sketch mode max-x max-y max-z] [sketch mode max-x max-y max-z max-a])
  140. constrain
    fn ([amt low high])
  141. copy-pixels
    fn ([sketch [sx1 sy1 sx2 sy2] [dx1 dy1 dx2 dy2]] [sketch img [sx1 sy1 sx2 sy2] [dx1 dy1 dx2 dy2]])
    Processing copy function.
  142. create-font
    fn ([sketch name size] [sketch name size smooth] [sketch name size smooth charset])
  143. create-graphics
    fn ([sketch w h renderer] [sketch w h renderer path])
  144. create-image
    fn ([sketch w h format])
  145. create-input
    fn ([filename])
  146. create-input-raw
    fn ([sketch filename])
    Call openStream() without automatic gzip decompression.
  147. create-output
    fn ([filename])
  148. create-path
    fn ([filename])
  149. create-reader
    fn ([sketch filename])
  150. create-writer
    fn ([sketch filename])
  151. cursor
    fn ([sketch] [sketch cur-type])
  152. cursor-image
    fn ([sketch img] [sketch img hx hy])
  153. curve
    fn ([sketch x1 y1 x2 y2 x3 y3 x4 y4] [sketch x1 y1 z1 x2 y2 z2 x3 y3 z3 x4 y4 z4])
  154. curve-detail
    fn ([sketch detail])
  155. curve-point
    fn ([sketch a b c d t])
  156. curve-tangent
    fn ([sketch a b c d t])
  157. curve-tightness
    fn ([sketch ti])
  158. curve-vertex
    fn ([sketch x y] [sketch x y z])
  159. day
    fn ([])
    Get the current day of the month (1 through 31).
  160. degrees
    fn ([radians])
  161. delay-frame
    fn ([sketch nap-time])
  162. destroy
    fn ([sketch])
  163. directional-light
    fn ([sketch r g b nx ny nz])
  164. displayable?
    fn ([sketch])
  165. dist
    fn ([a b x y] [a b c x y z])
  166. ellipse
    fn ([sketch a b c d])
  167. ellipse-mode
    fn ([sketch mode])
  168. emissive
    fn ([sketch gray] [sketch x y z])
  169. end-camera
    fn ([sketch])
  170. end-raw
    fn ([sketch])
  171. end-shape
    fn ([sketch] [sketch mode])
  172. exit
    fn ([sketch])
  173. export-font
    fn ([font-name size smooth filename] [font-name size filename])
    Exports the given system font to a vlw file.
    Examples:
    (use '(incanter core processing))
    (export-font "Ariel" 48 "/tmp/ariel_48.vlw")
    (view
    (sketch
    (setup []
    (let [font (load-font this "/tmp/ariel_48.vlw")]
    (doto this
    (text-font font)
    smooth
    (fill 0))))
    (draw []
    (doto this
    (text "LAX" 0 40)
    (text "AMS" 0 70)
    (text "FRA" 0 100))))
    :size [120 120])
  174. fill
    fn ([sketch gray] [sketch gray alpha] [sketch x y z] [sketch x y z alpha])
    Sets the color used to fill shapes. For example, if you run (fill 204 102 0), all
    subsequent shapes will be filled with orange. This color is either specified in
    terms of the RGB or HSB color depending on the current colorMode() (the default
    color space is RGB, with each value in the range from 0 to 255).
    When using hexadecimal notation to specify a color, use '16r' before
    the values (e.g. 16rCCFFAA, 16rFFCCFFAA). Use six digits to specify
    a color (the way colors are specified in HTML and CSS). When eight
    digits are used, the first two characters define the alpha component and the
    remainder the red, green, and blue components.
    The value for the parameter "gray" must be less than or equal to the current
    maximum value as specified by (colorMode). The default maximum value is 255.
    To change the color of an image (or a texture), use (tint).
    Syntax:
    (fill sketch gray)
    (fill sketch gray alpha)
    (fill sketch value1 value2 value3)
    (fill sketch value1 value2 value3 alpha)
    (fill sketch color)
    (fill sketch color alpha)
    (fill sketch hex)
    (fill sketch hex alpha)
    Parameters:
    sketch PApplet
    gray int or float: number specifying value between white and black
    alpha int or float: opacity of the fill
    value1 int or float: red or hue value
    value2 int or float: green or saturation value
    value3 int or float: blue or brightness value
    color color: any value of the color datatype
    hex int: color value in hexadecimal notation (i.e. #FFCC00 or 0xFFFFCC00)
    Returns:
    None
    References:
    http://processing.org/reference/fill_.html
    Examples:
    (def sktch (sketch))
    (fill sktch "0xFF00FF")
    (fill sktch 0xFF 0x00 0xFF)
    (fill sktch 255 0 255)
  175. filter-kind
    fn ([sketch kind] [sketch kind param])
  176. frame-count
    fn ([sketch])
  177. framerate
    fn ([sketch new-rate])
  178. frustum
    fn ([sketch l r b t near far])
  179. get-pixel
    fn ([sketch] [sketch x y] [sketch x y w h])
  180. green
    fn ([sketch what])
  181. height
    fn ([sketch])
  182. hint
    fn ([sketch which])
  183. hour
    fn ([])
  184. hue
    fn ([sketch what])
  185. image
    fn ([sketch img x y] [sketch img x y c d] [sketch img x y c d u1 v1 u2 v2])
  186. image-mode
    fn ([sketch mode])
  187. lerp-color
    fn ([c1 c2 amt])
    Calculates a color or colors between two color at a specific increment.
    The amt parameter is the amount to interpolate between the two values
    where 0.0 equal to the first point, 0.1 is very near the first point,
    0.5 is half-way in between, etc.
    Parameters:
    c1 color: interpolate from this color
    c2 color: interpolate to this color
    amt float: between 0.0 and 1.0
    Returns:
    float
  188. light-specular
    fn ([sketch x y z])
  189. lights
    fn ([sketch])
  190. line
    fn ([sketch p1 p2] [sketch x1 y1 x2 y2] [sketch x1 y1 z1 x2 y2 z2])
  191. list-fonts
    fn ([])
    Returns a list of the fonts available on current system.
  192. load-bytes
    fn ([filename])
  193. load-font
    fn ([sketch filename])
  194. load-image
    fn ([sketch filename])
  195. load-matrix
    fn ([sketch])
  196. load-pixels
    fn ([sketch])
  197. load-shape
    fn ([sketch filename])
    Load a geometry from a file as a PShape.
  198. load-strings
    fn ([sketch filename])
    Load data from a file and shove it into a String array.
  199. mask
    fn ([sketch alpha-array])
  200. mask-image
    fn ([sketch img])
  201. millis
    fn ([sketch])
  202. minute
    fn ([])
  203. model-x
    fn ([sketch x y z])
  204. model-y
    fn ([sketch x y z])
  205. model-z
    fn ([sketch x y z])
  206. month
    fn ([])
  207. mouse-x
    fn ([mouse-event])
  208. mouse-y
    fn ([mouse-event])
  209. no-cursor
    fn ([sketch])
  210. no-fill
    fn ([sketch])
  211. no-lights
    fn ([sketch])
  212. no-loop
    fn ([sketch])
  213. no-smooth
    fn ([sketch])
  214. no-stroke
    fn ([sketch])
  215. no-tint
    fn ([sketch])
  216. noise
    fn ([sketch x] [sketch x y] [sketch x y z])
  217. noise-detail
    fn ([sketch int detail] [sketch int detail falloff])
  218. noise-seed
    fn ([sketch what])
  219. norm
    fn ([val start stop])
    Normalize a value to exist between 0 and 1 (inclusive).
  220. normal
    fn ([sketch nx ny nz])
  221. num->text
    fn ([sketch num x y] [sketch num x y z])
  222. open
    fn ([filename])
  223. ortho
    fn ([sketch] [sketch l r b t near far])
  224. perspective
    fn ([sketch] [sketch fovy aspect z-near z-far])
  225. point
    fn ([sketch x y] [sketch x y z])
  226. point-light
    fn ([sketch r g b x y z])
  227. pop-matrix
    fn ([sketch])
  228. print-camera
    fn ([sketch])
  229. print-matrix
    fn ([sketch])
  230. print-projection
    fn ([sketch])
  231. push-matrix
    fn ([sketch])
  232. quad
    fn ([sketch x1 y1 x2 y2 x3 y3 x4 y4])
  233. radians
    fn ([deg])
  234. rect
    fn ([sketch x1 y1 x2 y2])
  235. rect-mode
    fn ([sketch mode])
  236. red
    fn ([sketch what])
  237. redraw
    fn ([sketch])
  238. remap
    fn ([val istart istop ostart ostop])
  239. request-image
    fn ([sketch filename] [sketch filename extension])
  240. reset-matrix
    fn ([sketch])
  241. reverse-array
    fn ([arr])
  242. rotate
    fn ([sketch angle] [sketch angle vx vy vz])
  243. rotate-x
    fn ([sketch angle])
  244. rotate-y
    fn ([sketch angle])
  245. rotate-z
    fn ([sketch angle])
  246. round
    fn ([what])
  247. saturation
    fn ([sketch what])
  248. save-font
    fn ([sketch font filename])
  249. save-frame
    fn ([sketch] [sketch what])
  250. scale
    fn ([sketch s] [sketch sx sy])
  251. screen-x
    fn ([sketch x y] [sketch x y y])
  252. screen-y
    fn ([sketch x y] [sketch x y z])
  253. screen-z
    fn ([sketch x y z])
  254. seconds
    fn ([])
  255. set-image-at
    fn ([sketch dx dy src])
  256. set-pixel
    fn ([sketch x y c])
  257. shininess
    fn ([sketch shine])
  258. size
    fn ([sketch w h] [sketch w h renderer])
  259. sketch
    macro ([& methods])
  260. smooth
    fn ([sketch])
  261. specular
    fn ([sketch gray] [sketch gray alpha] [sketch x y z] [sketch x y z a])
  262. sphere
    fn ([sketch r])
  263. sphere-detail
    fn ([sketch res] [sketch ures vres])
  264. spotlight
    fn ([sketch r g b x y z nx ny nz angle concentration] [sketch [r g b] [x y z] [nx ny nz] angle concentration])
  265. start-loop
    fn ([sketch])
  266. string->text
    fn ([sketch s] [sketch s x y] [sketch s x y z])
  267. string->text-in
    fn ([sketch s x1 y1 x2 y2] [sketch s x1 y1 x2 y2 z])
  268. stroke
    fn ([sketch gray] [sketch gray alpha] [sketch x y z] [sketch x y z alpha])
  269. stroke-cap
    fn ([sketch cap])
  270. stroke-join
    fn ([sketch jn])
  271. stroke-weight
    fn ([sketch weight])
  272. text
    fn ([sketch s] [sketch s x y] [sketch s x y z] [sketch s x1 y1 x2 y2] [sketch s x1 y1 x2 y2 z])
  273. text-align
    fn ([sketch align] [sketch align-x align-y])
  274. text-ascent
    fn ([sketch])
  275. text-descend
    fn ([sketch])
  276. text-font
    fn ([sketch which] [sketch which size])
  277. text-leading
    fn ([sketch leading])
  278. text-mode
    fn ([sketch mode])
  279. text-size
    fn ([sketch size])
  280. text-width
    multi
  281. texture
    fn ([sketch img])
  282. texture-mode
    fn ([sketch mode])
  283. tint
    fn ([sketch gray] [sketch gray alpha] [sketch x y z] [sketch x y z a])
  284. translate
    fn ([v] [sketch tx ty] [sketch tx ty tz])
  285. triangle
    fn ([sketch x1 y1 x2 y2 x3 y3])
  286. vertex
    fn ([sketch x y] [sketch x y z] [sketch x y u v] [sketch x y z u v])
  287. width
    fn ([sketch])
  288. with-rotation
    macro ([rotation & body])
    Berforms body with rotation, restores current transformation on exit.
    Accepts a vector [angle] or [angle x-axis y-axis z-axis].
    Example:
    (with-rotation [angle]
    (vertex 1 2))
  289. with-translation
    macro ([translation-vector & body])
    Berforms body with translation, restores current transformation on exit.
  290. year
    fn ([])