-
-
Save lucasdemarchi/7273e8bd39eeb4ce8c17a97192d22e7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn rgbtohex(r: u8, g: u8, b: u8) { | |
println!("{:#02x}{:02x}{:02x}", r, g, b); | |
} | |
fn main() { | |
rgbtohex(255, 0, 1) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment