Pen::setColor()
Sets the pen's color to the amount. This does only have an effect on new points, which are created by setting the position.
Examples
Syntax
Java
Scratch
set pen color to ()
Parameters
Name | Data Type | Description |
---|---|---|
hue | float | A hue value in the range of 0 ... 255 |
r | int | A red value in the range of 0 ... 255 |
g | int | A green value in the range of 0 ... 255 |
b | int | A blue value in the range of 0 ... 255 |
Return
void