Cover
Reference
Tutorials
Bugs
settings <- function() {
size(100, 100, P3D)
}
draw <- function() {
background(0)
noStroke()
pointLight(51, 102, 126, 35, 40, 36)
translate(80, 50, 0)
sphere(30)
}
pointLight(v1 ,v2 ,v3 ,x ,y ,z )
| v1 | float: red or hue value (depending on current color mode) |
|---|---|
| v2 | float: green or saturation value (depending on current color mode) |
| v3 | float: blue or brightness value (depending on current color mode) |
| x | float: x-coordinate of the light |
| y | float: y-coordinate of the light |
| z | float: z-coordinate of the light |