Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger

Name

hexWaert()

Examples
Farb c = #ffcc00;
schrib_uf_e_neui_Linie(c);          // Prints -13312
schrib_uf_e_neui_Linie(hexWaert(c));     // Prints FFFFCC00
schrib_uf_e_neui_Linie(hexWaert(c, 6));  // Prints FFCC00

Farb c = Farb(255, 204, 0);
schrib_uf_e_neui_Linie(c);          // Prints -13312
schrib_uf_e_neui_Linie(hexWaert(c));     // Prints FFFFCC00
schrib_uf_e_neui_Linie(hexWaert(c, 6));  // Prints FFCC00
Description Converts a Chlinizahl, Buechstabe, Ganzizahl, or Farb to a Satz containing the equivalent hexadecimal notation. For example Farb(0, 102, 153, 255) will convert to the Satz "FF006699". This function can help make your geeky debugging sessions much happier.
Syntax
hexWaert(value)
hexWaert(value, digits)
Parameters
value Chlinizahl, Buechstabe, Ganzizahl, Farb: value to convert
digits Ganzizahl: number of digits to return
Usage Web & Application
Related unhexWaert()
binaerewaert()
noed_binaer()
Stefan Baltensperger 2009

Creative Commons License