Scratch for Java

Color::withHue()

Another colour (hue), keeping saturation, brightness and alpha. The colour goes around, so withHue(getHue() + 10) works like Scratch's "change color by 10".

Syntax

Java

.withHue(hue)

Parameters

Name Data Type Description
hue double the colour from 0 to 100

Return

Color

withHue()

Create Shareable URL

Select Sections