ga.background()

Name

ga.background()

Examples

function 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

Description

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

Syntax

ga.background(gray,alpha)
ga.background(red,green,blue,alpha)

Parameters

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

Returns

None