kitazith/color

Values

pub fn from_rgb(
  red red: Int,
  green green: Int,
  blue blue: Int,
) -> Int

Converts RGB components to a single color integer for Discord color fields.

Examples

from_rgb(red: 255, green: 0, blue: 0)
// -> 0xFF0000 (== 16711680)
Search Document