Cover
Reference
Tutorials
Bugs
rect(30, 20, 50, 50) scale(0.5, 1.3) rect(30, 20, 50, 50)
rect(30, 20, 50, 50) scale(0.5) rect(30, 20, 50, 50)
settings <- function() {
size(100, 100, P3D)
}
draw <- function() {
noFill()
translate(width/2 + 12, height/2)
box(20, 20, 20)
scale(2.5, 2.5, 2.5)
box(20, 20, 20)
}
scale(s ) scale(x ,y ) scale(x ,y ,z )
| s | float: percentage to scale the object |
|---|---|
| x | float: percentage to scale the object in the x-axis |
| y | float: percentage to scale the object in the y-axis |
| z | float: percentage to scale the object in the z-axis |