Color format PDF Print E-mail
Written by Jay Taoko   
Monday, 06 April 2009 00:00

What is the best format for color representation? In game development you often encounter colors in the following format:

  • Floating point format representation where every component is in the range [0, 1.0].
  • Integer with value in the range [0, 255]
  • Hexadecimal with value in the range [0, 255]

That is not all. You also have the choice between RGB, HLS, HSV representations among others. All these representations of colors inputs all comes down to the same thing. Yet, it is very convenient when you can use color values in any format you like. Artists and programmers may have different views on this matter.

Color widgets in DevTool let you choose the format you prefer. You can work with colors in linear RGB, HSV or HLS format and also you can choose to represent color values in floating point, integer or hexadecimal.

Color Input Widget
Color Input Widget.

Going from one representation to another requires only a simple conversion that anyone can do. Yet, it is always best when that conversion is only one click away in the user interface.

Comments (0)Add Comment

Write comment

busy