Py5Graphics.hue()#

Extracts the hue value from a color.

Description#

Extracts the hue value from a color.

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

Underlying Processing method: PGraphics.hue

Syntax#

hue(rgb: int, /) -> float

Parameters#

  • rgb: int - any value of the color datatype

Updated on November 12, 2021 11:30:58am UTC