You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
villares edited this page May 24, 2020
·
4 revisions
Nome
hex()
Exemplos
color c = #ffcc00;
println(c); // Imprime -13312 println(hex(c)); // Imprime FFFFCC00 println(hex(c, 6)); // Imprime FFCC00
color c =color(255, 204, 0);
println(c); // Imprime -13312 println(hex(c)); // Imprime FFFFCC00 println(hex(c, 6)); // Imprime FFCC00
Descrição
Converte um byte, char, int, ou color em
uma String contendo o equivalente em sua
representação hexadecimal. Por exemplo
color(0, 102, 153, 255)
será convertico na String "FF006699". Esta
função pode ajudar as sessões de
depuração mais felizes.
Sintaxe
hex(valor)
hex(valor, digitos)
Parâmetros
valor
byte, char, int, color: value to convert