Scratch for Java

Text::setTextColor()

Sets the text color using RGB values.

Syntax

Java

.setTextColor(r, g, b)
.setTextColor(h)
.setTextColor(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 text color
c Color the new color to be set for the text

Return

void

setTextColor()