Color Tuple
Create a tuple called color with three values representing an RGB color: 255, 128, 0 (that's orange!). Print each channel on its own line.
Expected output:
text
R: 255 G: 128 B: 0
Hints:
- Create the tuple:
let color = (255, 128, 0); - Access each value with
color.0,color.1,color.2
rust
fn main() {
}