Browse Source

Changed range to 224 to 255 on red

master
Conan 6 months ago
parent
commit
4c2af8f397
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/lol.rs

+ 1
- 1
src/lol.rs View File

@ -4,7 +4,7 @@ use std::io::{stdout, Write};
use std::process::exit;
fn rainbow(freq: f64, i: f64) -> (u8, u8, u8) {
let red = ( (((freq * i).sin() * 127.0) as u8 + 128)+(244*255/31)) * (31/255);
let red = ( (((freq * i).sin() * 127.0) as u8 + 128)+(224*255/31)) * (31/255);
let green = ((freq * i + 2.0 * consts::PI / 3.0).sin() * 127.0) as i16 + 128;
let blue = ((freq * i + 4.0 * consts::PI / 3.0).sin() * 127.0) as i16 + 128;
(red as u8, green as u8, blue as u8)


Loading…
Cancel
Save