Scratch for Java

Color::changeColor()

Changes the color accordining to a hue value, which is added to the current hue value. When the resulting value is greater than 255 it will be reset. For example: 285 => 30.

Syntax

Java

.changeColor(h)

Parameters

Name Data Type Description
h double A hue value. Could be any positive or negative number.

Return

void

changeColor()