GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Processing
  • p5.js
  • Processing.py
  • Processing for Android
  • Processing for Pi
  • Processing Foundation
  • # (comment)
  • ''' ''' (multiline comment)
  • () (parentheses)
  • , (comma)
  • . (dot)
  • : (Colon)
  • = (assign)
  • False

This view

  • Original page
  • New address

GeezerVison is showing py.processing.org — Reference

Python Mode for Processing is no longer maintained. This site is kept as an archive. Read more
  • Processing
  • p5.js
  • Processing.py
  • Processing for Android
  • Processing for Pi
  • Processing Foundation
Cover
Reference
Tutorials
Examples
Bugs

Processing.py Reference. Processing is not a single programming language, but an arts-centric system for learning, teaching, and making visual form with code. This Reference documents its Python Mode.

Structure

  • # (comment)
  • ''' ''' (multiline comment)
  • () (parentheses)
  • , (comma)
  • . (dot)
  • : (Colon)
  • = (assign)
  • False
  • Globals
  • None
  • Slice
  • String Formatting
  • True
  • [] (Index brackets)
  • add_library
  • class
  • def
  • del
  • draw()
  • except
  • exit()
  • in
  • len()
  • loop()
  • noLoop()
  • pass
  • popStyle()
  • pushStyle()
  • range()
  • redraw()
  • return
  • setup()
  • super
  • try
  • {} (Curly braces)

Environment

  • cursor()
  • delay()
  • displayHeight
  • displayWidth
  • focused
  • frameCount
  • frameRate
  • frameRate()
  • fullScreen()
  • height
  • noCursor()
  • size()
  • width

Data

Primitive
  • Boolean
  • float
  • int
Composite
  • Dictionary
  • Object
  • Tuple
  • XML
  • string
Conversion
  • binary()
  • float()
  • hex()
  • int()
  • list()
  • str()
  • unbinary()
  • unhex()
Dictionary Methods
  • .items()
  • .iteritems()
  • .keys()
  • .update()
  • .values()
List Methods
  • .append()
  • .extend()
  • .index()
  • .insert()
  • .pop()
  • .remove()
  • .reverse()
  • .sort()
String Methods
  • .find()
  • .join()
  • .lower()
  • .replace()
  • .split()
  • .startswith()
  • .strip()
  • .upper()
List Functions
  • reversed()
  • sorted()
String Functions
  • match()
  • matchAll()
  • nf()
  • nfc()
  • nfp()
  • nfs()

Control

Relational Operators
  • != (inequality)
  • < (less than)
  • <= (less than or equal to)
  • == (equality)
  • > (greater than)
  • >= (greater than or equal to)
Iteration
  • for
  • while
Conditionals
  • Conditional Expressions
  • break
  • continue
  • else
  • if
Logical Operators
  • && (logical AND)
  • not (logical NOT)
  • or (logical OR)

Shape

  • createShape()
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()
  • noSmooth()
  • rectMode()
  • smooth()
  • strokeCap()
  • strokeJoin()
  • strokeWeight()
Vertex
  • beginContour()
  • beginShape()
  • bezierVertex()
  • curveVertex()
  • endContour()
  • endShape()
  • quadraticVertex()
  • texture()
  • textureMode()
  • vertex()
Loading & Displaying
  • loadShape()
  • shape()
  • shapeMode()

Input

Mouse
  • mouseButton
  • mouseClicked()
  • mouseDragged()
  • mouseMoved()
  • mousePressed
  • mousePressed()
  • mouseReleased()
  • mouseWheel()
  • mouseX
  • mouseY
  • pmouseX
  • pmouseY
Keyboard
  • key
  • keyCode
  • keyPressed
  • keyPressed()
  • keyReleased()
  • keyTyped()
Files
  • createReader()
  • loadBytes()
  • loadStrings()
  • loadXML()
  • parseXML()
  • selectFolder()
  • selectInput()
Time & Date
  • day()
  • hour()
  • millis()
  • minute()
  • month()
  • second()
  • year()

Output

Text Area
  • print()
  • println()
Image
  • save()
  • saveFrame()
Files
  • beginRaw()
  • createWriter()
  • endRaw()
  • saveBytes()
  • saveStrings()
  • saveXML()
  • selectOutput()

Transform

  • applyMatrix()
  • popMatrix()
  • printMatrix()
  • pushMatrix()
  • resetMatrix()
  • rotate()
  • rotateX()
  • rotateY()
  • rotateZ()
  • scale()
  • shearX()
  • shearY()
  • translate()

Lights, Camera

Lights
  • ambientLight()
  • directionalLight()
  • lightFalloff()
  • lightSpecular()
  • lights()
  • 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()

Color

Setting
  • background()
  • clear()
  • colorMode()
  • fill()
  • noFill()
  • noStroke()
  • stroke()
Creating & Reading
  • alpha()
  • blendColor()
  • blue()
  • brightness()
  • color()
  • green()
  • hue()
  • lerpColor()
  • red()
  • saturation()

Image

  • PImage
  • createImage()
Loading & Displaying
  • image()
  • imageMode()
  • loadImage()
  • noTint()
  • requestImage()
  • tint()
Textures
  • textureWrap()
Pixels
  • blend()
  • copy()
  • filter()
  • get()
  • loadPixels()
  • pixels
  • set()
  • updatePixels()

Rendering

  • PGraphics
  • blendMode()
  • clip()
  • createGraphics()
  • hint()
  • noClip()
Shaders
  • PShader
  • loadShader()
  • resetShader()
  • shader()

Typography

  • PFont
Loading & Displaying
  • createFont()
  • loadFont()
  • text()
  • textFont()
Attributes
  • textAlign()
  • textLeading()
  • textMode()
  • textSize()
  • textWidth()
Metrics
  • textAscent()
  • textDescent()

Math

PVector
  • PVector
Operators
  • % (modulo)
  • * (multiply)
  • *= (multiply assign)
  • + (addition)
  • += (add assign)
  • - (minus)
  • -= (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()

Constants

  • HALF_PI (1.57079...)
  • PI (3.14159...)
  • QUARTER_PI (0.78539...)
  • TAU (6.28318...)
  • TWO_PI (6.28318...)

If you see any errors or have comments, please let us know.

Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.