hex() \ Language (API) \ Processing 1.0
Search processing.org:
Language (A-Z) \
Libraries \
Tools \
Environment \
Compare \
Troubleshooting
Reference for Processing version 1.0+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.
Name
hex()
Examples
color c = #ffcc00;
println(c); // Prints -13312
println(hex(c)); // Prints FFFFCC00
println(hex(c, 6)); // Prints FFCC00color c = color(255, 204, 0);
println(c); // Prints -13312
println(hex(c)); // Prints FFFFCC00
println(hex(c, 6)); // Prints FFCC00
Description
Converts a byte, char, int, or color to a String containing the equivalent hexadecimal notation. For example color(0, 102, 153, 255) will convert to the String "FF006699". This function can help make your geeky debugging sessions much happier.
Syntax
hex(value)
hex(value, digits)
Parameters
value
byte, char, int, color: value to convert
digits
int: number of digits to return
Returns
String
Usage
Web & Application
Related
unhex()binary()unbinary()
Updated on November 22, 2008 08:39:25pm PST
Processing was initiated by Ben Fry and Casey Reas. It is developed by a small team of volunteers.
© Info \
Site hosted by Media Temple!
Wyszukiwarka
Podobne podstrony:
option force hex style colorsA HEX na ASCIIzamiana z hex na dec 16bNadajnik Ukf 300mW HexA Kajt na hex[PIC] 230V Ceiling Fan Timer 5318?ntimer HEXWRITE HEX File Formatdziewczyny z hex hall 3 rozdział 27hexPROGRAM zmien rozszerzenie na hexdziewczyny z hex hall 3 rozdział 28READ HEX File FormatHEX DECDigital LC Meter Version 2 hexwięcej podobnych podstron