Name

scale()

Examples
rect(30, 20, 50, 50)
scale(0.5)
rect(30, 20, 50, 50)
rect(30, 20, 50, 50)
scale(0.5, 1.3)
rect(30, 20, 50, 50)
# Scaling in 3D requires P3D
# as a parameter to size()
size(100, 100, P3D)
noFill()
translate(width / 2 + 12, height / 2)
box(20, 20, 20)
scale(2.5, 2.5, 2.5)
box(20, 20, 20)
Description
Syntax
scale(s)
scale(x, y)
scale(x, y, z)
Parameters
s
x
y
z
Related pushMatrix()
popMatrix()
translate()
rotate()
rotateX()
rotateY()
rotateZ()
Updated on Wed Jan 18 17:32:21 2017.
Creative Commons License