///|
/// The RGB (Red, Green, Blue) value of a color in the palette.
#valtype
pub(all) struct RGB {
  r : Byte
  g : Byte
  b : Byte
} derive(Show, Eq, Compare, Hash, Default)

///|
/// Shorthand for creating a new RGB.
pub fn RGB::new(r : Byte, g : Byte, b : Byte) -> RGB {
  { r, g, b }
}