A copy of the Processing Cheat Sheet, previously available from surattack.com - acdean/Processing-Cheat-Sheet. Size (int, int, type); //window size. Size ( 800, 600); //2. Size ( 800, 600, P3D); //3D. Background (0); //black. Background (255.
Structure
() (parentheses), (comma). (dot)/* */ (multiline comment)/** */ (doc comment)// (comment); (semicolon)= (assign)[] (array access){} (curly braces)catchclassdraw()exit()extendsfalsefinalimplementsimportloop()newnoLoop()nullpop()popStyle()privatepublicpush()pushStyle()redraw()returnsetLocation()setResizable()setTitle()setup()staticsuperthisthread()truetryvoid
() (parentheses), (comma). (dot)/* */ (multiline comment)/** */ (doc comment)// (comment); (semicolon)= (assign)[] (array access){} (curly braces)catchclassdraw()exit()extendsfalsefinalimplementsimportloop()newnoLoop()nullpop()popStyle()privatepublicpush()pushStyle()redraw()returnsetLocation()setResizable()setTitle()setup()staticsuperthisthread()truetryvoid
Environment
cursor()delay()displayDensity()focusedframeCountframeRate()frameRatefullScreen()heightnoCursor()noSmooth()pixelDensity()pixelHeightpixelWidthsettings()size()smooth()width
cursor()delay()displayDensity()focusedframeCountframeRate()frameRatefullScreen()heightnoCursor()noSmooth()pixelDensity()pixelHeightpixelWidthsettings()size()smooth()width
Data
Primitive
booleanbytecharcolordoublefloatintlongComposite
ArrayArrayListFloatDictFloatListHashMapIntDictIntListJSONArrayJSONObjectObjectStringStringDictStringListTableTableRowXMLConversion
binary()boolean()byte()char()float()hex()int()str()unbinary()unhex()String Functions
join()match()matchAll()nf()nfc()nfp()nfs()split()splitTokens()trim()Array Functions
append()arrayCopy()concat()expand()reverse()shorten()sort()splice()subset()Control
Relational Operators
!= (inequality)< (less than)<= (less than or equal to) (equality)> (greater than)>= (greater than or equal to)Iteration
forwhileConditionals
?: (conditional)breakcasecontinuedefaultelseifswitchLogical Operators
! (logical NOT)&& (logical AND)|| (logical OR)Shape
createShape()loadShape()PShape
createShape()loadShape()PShape
2D Primitives
arc()circle()ellipse()line()point()quad()rect()square()triangle()Curves
bezier()bezierDetail()bezierPoint()bezierTangent()curve()curveDetail()curvePoint()curveTangent()curveTightness()3D Primitives
box()sphere()sphereDetail()Attributes
ellipseMode()rectMode()strokeCap()strokeJoin()strokeWeight()Vertex
beginContour()beginShape()bezierVertex()curveVertex()endContour()endShape()quadraticVertex()vertex()Loading & Displaying
shape()shapeMode()Input
Mouse
mouseButtonmouseClicked()mouseDragged()mouseMoved()mousePressed()mousePressedmouseReleased()mouseWheel()mouseXmouseYpmouseXpmouseYKeyboard
keykeyCodekeyPressed()keyPressedkeyReleased()keyTyped()Files
BufferedReadercreateInput()createReader()launch()loadBytes()loadJSONArray()loadJSONObject()loadStrings()loadTable()loadXML()parseJSONArray()parseJSONObject()parseXML()selectFolder()selectInput()Time & Date
day()hour()millis()minute()month()second()year()Output
Text Area
print()printArray()println()Image
save()saveFrame()Files
beginRaw()beginRecord()createOutput()createWriter()endRaw()endRecord()PrintWritersaveBytes()saveJSONArray()saveJSONObject()saveStream()saveStrings()saveTable()saveXML()selectOutput()Transform
applyMatrix()popMatrix()printMatrix()pushMatrix()resetMatrix()rotate()rotateX()rotateY()rotateZ()scale()shearX()shearY()translate()
applyMatrix()popMatrix()printMatrix()pushMatrix()resetMatrix()rotate()rotateX()rotateY()rotateZ()scale()shearX()shearY()translate()
Lights, Camera
Lights
ambientLight()directionalLight()lightFalloff()lights()lightSpecular()noLights()normal()pointLight()spotLight()Camera
beginCamera()camera()endCamera()frustum()ortho()perspective()printCamera()printProjection()Coordinates
modelX()modelY()modelZ()screenX()screenY()screenZ()Material Properties
ambient()emissive()shininess()specular()Natural Language Processing Cheat Sheet
Color
Setting
background()clear()colorMode()fill()noFill()noStroke()stroke()Creating & Reading
alpha()blue()brightness()color()green()hue()lerpColor()red()saturation()Image
createImage()PImage
createImage()PImage
Loading & Displaying
image()imageMode()loadImage()noTint()requestImage()tint()Textures
texture()textureMode()textureWrap()Pixels
blend()copy()filter()get()loadPixels()pixels[]set()updatePixels()Rendering
blendMode()clip()createGraphics()hint()noClip()PGraphics
blendMode()clip()createGraphics()hint()noClip()PGraphics
Shaders
loadShader()PShaderresetShader()shader()Loan Processing Cheat Sheet
Typography
PFont
PFont
Loading & Displaying
createFont()loadFont()text()textFont()Attributes
textAlign()textLeading()textMode()textSize()textWidth()Metrics
textAscent()textDescent()Reference Open Processing
Math
PVector
PVector
댓글