Cover
Reference
Tutorials
Bugs
background(51)
background(255, 204, 0)
img = loadImage("laDefense.jpg")
background(img)
background(rgb ) background(rgb ,alpha ) background(gray ) background(gray ,alpha ) background(v1 ,v2 ,v3 ) background(v1 ,v2 ,v3 ,alpha ) background(image )
| rgb | int: any value of the color datatype |
|---|---|
| alpha | float: opacity of the background |
| gray | float: specifies a value between white and black |
| v1 | float: red or hue value (depending on the current color mode) |
| v2 | float: green or saturation value (depending on the current color mode) |
| v3 | float: blue or brightness value (depending on the current color mode) |
| image | PImage: PImage to set as background (must be same size as the sketch window) |