We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
noStroke(); colorMode(HSB, 255); color c = color(0, 126, 255); fill(c); rect(15, 20, 35, 60); float value = saturation(c); // atribui 126 a "value" fill(value); rect(50, 20, 35, 60);
Extrai o valor de saturação de uma cor
saturation(cor)
Parâmetros cor qualquer valor do tipo de dados color
float
Web & Applicações
red()
green()
blue()
hue()
brightness()