Scratch for Java

Color::fromHSB()

A colour from Scratch's colour, saturation and brightness, each from 0 to 100. The colour goes around (110 is the same as 10); saturation and brightness are clamped.

Syntax

Java

.fromHSB(hue, saturation, brightness)

Parameters

Name Data Type Description
hue double the colour from 0 to 100
saturation double from 0 (grey) to 100 (full colour)
brightness double from 0 (black) to 100 (full brightness)

Return

Color

fromHSB()

Create Shareable URL

Select Sections