본문 바로가기

프로그래밍

한눈에 보는 프로세싱2 명령어

http://www.processing.org/reference/ 와 동일. Language Reference (API) \ Processing 2+
구조 catch class draw() exit() extends loop() noLoop() popStyle() pushStyle() redraw() setup() , (comma) . (dot) /** */ (doc comment) // (comment) = (assign) [] (array access) {} (curly braces) false final implements import /* */ (multiline comment) new null () (parentheses) private public return ; (semicolon) static super this true try void
환경 cursor() displayHeight displayWidth focused frameCount frameRate() frameRate height noCursor() size() width
Data Primitive boolean byte char color double float int long
Composite Array ArrayList FloatDict FloatList HashMap IntDict IntList JSONArray JSONObject Object String StringDict StringList Table TableRow XML
Conversion 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()
제어 Relational Operators != (다르다) < (작다) <= (작거나같다) == (같다) > (크다) >= (크거나같다)
Iteration for while
Conditionals break case ?: (conditional) continue default else if switch
Logical Operators ! (logical NOT) && (logical AND) || (logical OR)
도형 createShape() loadShape() PShape
2D Primitives arc() ellipse() line() point() quad() rect() triangle()
Curves bezier() bezierDetail() bezierPoint() bezierTangent() curve() curveDetail() curvePoint() curveTangent() curveTightness()
3D Primitives box() sphere() sphereDetail()
Attributes ellipseMode() noSmooth() rectMode() smooth() strokeCap() strokeJoin() strokeWeight()
Vertex beginContour() beginShape() bezierVertex() curveVertex() endContour() endShape() quadraticVertex() vertex()
Loading & Displaying shape() shapeMode()
입력 Mouse mouseButton mouseClicked() mouseDragged() mouseMoved() mousePressed() mousePressed mouseReleased() mouseWheel() mouseX mouseY pmouseX pmouseY
Keyboard key keyCode keyPressed() keyPressed keyReleased() keyTyped()
Files BufferedReader createInput() createReader() loadBytes() loadJSONArray() loadJSONObject() loadStrings() loadTable() loadXML() open() parseXML() saveTable() selectFolder() selectInput()
Time & Date day() hour() millis() minute() month() second() year()
출력 Text Area print() printArray() println()
Image save() saveFrame()
Files beginRaw() beginRecord() createOutput() createWriter() endRaw() endRecord() PrintWriter saveBytes() saveJSONArray() saveJSONObject() saveStream() saveStrings() saveXML() selectOutput()
변환 applyMatrix() popMatrix() printMatrix() pushMatrix() resetMatrix() rotate() rotateX() rotateY() rotateZ() scale() shearX() shearY() translate()
조명
카메라
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()
색상 Setting background() clear() colorMode() fill() noFill() noStroke() stroke()
Creating & Reading alpha() blue() brightness() color() green() hue() lerpColor() red() saturation()
그림 createImage() PImage
Loading & Displaying image() imageMode() loadImage() noTint() requestImage() tint()
Textures texture() textureMode() textureWrap()
Pixels blend() copy() filter() get() loadPixels() pixels[] set() updatePixels()
렌더링 blendMode() createGraphics() PGraphics
Shaders loadShader() PShader resetShader() shader()
글꼴 PFont
Loading & Displaying createFont() loadFont() text() textFont()
Attributes textAlign() textLeading() textMode() textSize() textWidth()
Metrics textAscent() textDescent()
Math PVector
Operators % (modulo) * (multiply) *= (multiply assign) + (addition) ++ (increment) += (add assign) - (minus) -- (decrement) -= (subtract assign) / (divide) /= (divide assign)
Bitwise Operators & (bitwise AND) << (left shift) >> (right shift) | (bitwise OR)
Calculation abs() ceil() constrain() dist() exp() floor() lerp() log() mag() map() max() min() norm() pow() round() sq() sqrt()
Trigonometry acos() asin() atan() atan2() cos() degrees() radians() sin() tan()
Random noise() noiseDetail() noiseSeed() random() randomGaussian() randomSeed()
상수 HALF_PI PI QUARTER_PI TAU TWO_PI