ga.background()
Examplesfunction draw()
ga.background(0.0, 0.0, 0.0, 0.1)
of.setColor(255,255,0)
of.circle(of.mouseX(), of.mouseY(), 200, 200)
end
Descriptionga.background(0.0, 0.0, 0.0, 0.1)
of.setColor(255,255,0)
of.circle(of.mouseX(), of.mouseY(), 200, 200)
end
This function permits you to set the color and alpha of the background, in grayscale mode with two parameters (gray,alpha) or in color mode with four parameters (r,g,b,a). All parameters are from 0.0 to 1.0
Syntaxga.background(gray,alpha)
ga.background(red,green,blue,alpha)
Parametersga.background(red,green,blue,alpha)
| gray | float: specifies a value between white and black |
| alpha | float: opacity of the background |
| red | float: red value |
| green | float: green value |
| blue | float: blue value |

sending...