Skip to content

Defining Colors

Francesco edited this page Jul 6, 2017 · 18 revisions

t-ui supports colors in hexadecimal representations ("#aarrggbb") and several string representations.

Hexadecimal

#aarrggbb

  • the character "#" is needed: if you don't include it, you will notice unexpected behaviors
  • "aa" represents the alpha channel, the transparency. "00" means "completely transparent", "FF" means "fully opaque". So, "88" means "~50% transparent"
  • "rr" represents the red color
  • "gg" represents the green color
  • "bb" represents the blue color

String

You can use those string that represents simplified colors, which worked without problem:

  • #FF0000 red
  • #0000FF blue
  • #00FF00 green
  • #000000 black
  • #FFFFFF white
  • #888888 gray
  • #00FFFF cyan
  • #FF00FF magenta
  • #FFFF00 yellow
  • #CCCCCC lightgray
  • #444444 darkgray
  • #888888 grey
  • #00FFFF lightgrey
  • #00FFFF darkgrey
  • #00FFFF aqua
  • #FF00FF fuchsia
  • #00FF00 lime
  • #800000 maroon
  • #000080 navy
  • #808000 olive
  • #800080 purple
  • #C0C0C0 silver
  • #008080 teal
Clone this wiki locally