Py5Graphics.saturation()

Extracts the saturation value from a color.

Description

Extracts the saturation value from a color.

This method is the same as saturation() but linked to a Py5Graphics object. To see example code for how it can be used, see saturation().

Underlying Java method: PGraphics.saturation

Syntax

saturation(rgb: int, /) -> float

Parameters

  • rgb: int - any value of the color datatype

Updated on September 11, 2021 16:51:34pm UTC