daily pastebin goal
8%
SHARE
TWEET

[Rust] The RGB model constructor of Color class

cwchen Aug 28th, 2017 324 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. impl Color {
  2.     // Constructor for RGB model
  3.     pub fn from_rgb(r: u8, g: u8, b: u8) -> Color {
  4.         Color::RGB{ r: r, g: g, b: b }
  5.     }
  6. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top