Scratch for Java

Text::setBackgroundColor()

Sets the background color using the specified RGB values.

Syntax

Java

.setBackgroundColor(r, g, b)
.setBackgroundColor(h)
.setBackgroundColor(c)

Parameters

Name Data Type Description
r int the red component of the color (0-255)
g int the green component of the color (0-255)
b int the blue component of the color (0-255)
h double the hue value for the background color
c Color the new background color to be set

Return

void

setBackgroundColor()