Advertisement
cwchen

[Rust] Color class (which is an enum)

Aug 28th, 2017
3,378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.13 KB | None | 0 0
  1. pub enum Color {
  2.     RGB { r: u8, g: u8, b: u8 },
  3.     CMYK { c: f64, m: f64, y: f64, k: f64 },
  4.     HSL { h: u16, s: f64, l: f64 },
  5. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement