C++ Mode
☰
Libraries
Reference
Examples
About
Data
Composite
BufferedReader
HashMap
PFont
PGraphics
PImage
PShader
PShape
PVector
PrintWriter
TableRow
Table
XML
std::map
std::vector
Array Functions
append()
arrayCopy()
concat()
expand()
reverse()
shorten()
sort()
splice()
subset()
Conversion
binary()
hex()
str()
unbinary()
unhex()
Primitive
color
String Functions
join()
matchAll()
match()
nf()
split()
splitTokens()
trim()
Input
Files
createInput()
createReader()
launch()
loadBytes()
loadJSONArray()
loadJSONObject()
loadStrings()
loadTable()
loadXML()
parseJSONArray()
parseJSONObject()
parseXML()
selectFolder()
selectInput()
Time & Date
day()
hour()
millis()
minute()
month()
second()
year()
Keyboard
key
keyPressed
keyCode
keyReleased()
keyPressed()
keyTyped()
Mouse
mouseButton
mouseClicked()
mouseDragged()
mouseMoved()
mousePressed
mousePressed()
mouseWheel()
mouseReleased()
mouseX
mouseY
pmouseX
pmouseY
Constants
HALF_PI
PI
QUARTER_PI
TAU
TWO_PI
Typography
Loading & Displaying
PFont
createFont()
loadFont()
textFont()
text()
Attributes
textAlign()
textLeading()
textMode()
textSize()
textWidth()
Metrics
textAscent()
textDescent()
Rendering
PGraphics
blendMode()
clip()
createGraphics()
hint()
noClip()
Shaders
PShader
loadShader()
resetShader()
shader()
Image
PImage
createImage()
Pixels
blend()
copy()
filter()
get()
loadPixels()
mask()
pixels[]
set()
updatePixels()
Loading & Displaying
image()
imageMode()
loadImage()
noTint()
tint()
Textures
texture()
textureMode()
textureWrap()
Shape
PShape
createShape()
loadShape()
2D Primitives
arc()
circle()
ellipse()
line()
point()
quad()
rect()
square()
triangle()
Vertex
beginContour()
beginShape()
bezierVertex()
curveVertex()
endContour()
endShape()
quadraticVertex()
vertex()
Curves
bezierDetail()
bezierPoint()
bezierTangent()
bezier()
curveDetail()
curvePoint()
curveTangent()
curveTightness()
curve()
3D Primitives
box()
sphere()
sphereDetail()
Attributes
ellipseMode()
rectMode()
strokeCap()
strokeJoin()
strokeWeight()
Loading & Displaying
shape()
shapeMode()
Math
PVector
Calculation
abs()
ceil()
constrain()
dist()
exp()
floor()
lerp()
log()
mag()
map()
max()
min()
norm()
pow()
round()
sq()
sqrt()
Trigonometry
acos()
asin()
atan2()
atan()
cos()
degrees()
radians()
sin()
tan()
Random
noise()
noiseDetail()
noiseSeed()
randomGaussian()
randomSeed()
random()
Output
Files
PrintWriter
createOutput()
createWriter()
saveBytes()
saveJSONArray()
saveJSONObject()
saveStrings()
saveTable()
saveXML()
selectOutput()
Text Area
print()
printArray()
println()
Image
save()
saveFrame()
Color
Creating & Reading
alpha()
blue()
brightness()
color()
green()
hue()
lerpColor()
red()
saturation()
Setting
background()
clear()
colorMode()
fill()
noFill()
noStroke()
stroke()
Lights Camera
Lights
ambientLight()
directionalLight()
lightFalloff()
lightSpecular()
lights()
noLights()
normal()
pointLight()
spotLight()
Material Properties
ambient()
emissive()
shininess()
specular()
Camera
beginCamera()
camera()
endCamera()
frustum()
ortho()
perspective()
printCamera()
printProjection()
Coordinates
modelX()
modelY()
modelZ()
screenX()
screenY()
screenZ()
Transform
applyMatrix()
popMatrix()
printMatrix()
pushMatrix()
resetMatrix()
rotateX()
rotateY()
rotateZ()
rotate()
scale()
shearX()
shearY()
translate()
Structure
draw()
exit()
loop()
noLoop()
pop()
popMatrix()
popStyle()
push()
pushMatrix()
pushStyle()
redraw()
setup()
thread()
delay()
Environment
cursor()
deltaTime
displayHeight
displayWidth
focused
frameCount
frameRate
frameRate()
fullScreen()
height
hint()
noCursor()
noSmooth()
pixelDensity()
pixelHeight
pixelWidth
size()
smooth()
width
windowMoved()
windowResizable()
windowResize()
windowResized()
windowTitle()
year()
Input / Time & Date
Description
Returns the current year as an integer.
Syntax
int year()
Parameters
None
Returns
int
Related
month
day
Under the Hood
Implementation in Processing.h / Processing.cpp:
Loading...