DiscordColor.fromRgb constructor

DiscordColor.fromRgb(
  1. int r,
  2. int g,
  3. int b
)

Construct color from individual color components

Implementation

factory DiscordColor.fromRgb(int r, int g, int b) =>
  DiscordColor.fromInt(r << 16 | g << 8 | b);