Cover
Reference
Tutorials
Bugs
settings <- function() {
size(100, 100, P3D)
}
draw <- function() {
size(100, 100, P3D)
noFill()
background(204)
camera(70, 35, 120, 50, 50, 0, 0, 1, 0)
translate(50, 50, 0)
rotateX(-PI/6)
rotateY(PI/3)
box(45)
}
camera() camera(eyeX ,eyeY ,eyeZ ,centerX ,centerY ,centerZ ,upX ,upY ,upZ )
| eyeX | float: x-coordinate for the eye |
|---|---|
| eyeY | float: y-coordinate for the eye |
| eyeZ | float: z-coordinate for the eye |
| centerX | float: x-coordinate for the center of the scene |
| centerY | float: y-coordinate for the center of the scene |
| centerZ | float: z-coordinate for the center of the scene |
| upX | float: usually 0.0, 1.0, or -1.0 |
| upY | float: usually 0.0, 1.0, or -1.0 |
| upZ | float: usually 0.0, 1.0, or -1.0 |