Re-added Red to default cpu pool... this does mean that there is a conflict with avg and cpu core 10, but eh... whatever I guess.
This commit is contained in:
parent
a756c44c66
commit
cefa227060
src/canvas/canvas_colours
|
@ -40,17 +40,18 @@ pub fn gen_n_styles(num_to_gen: i32) -> Vec<Style> {
|
|||
let mut colour_vec: Vec<Style> = vec![
|
||||
Style::default().fg(STANDARD_FIRST_COLOUR),
|
||||
Style::default().fg(STANDARD_SECOND_COLOUR),
|
||||
Style::default().fg(Color::LightRed),
|
||||
Style::default().fg(Color::LightCyan),
|
||||
Style::default().fg(Color::LightGreen),
|
||||
Style::default().fg(Color::LightBlue),
|
||||
Style::default().fg(Color::LightRed),
|
||||
Style::default().fg(Color::Cyan),
|
||||
Style::default().fg(Color::Green),
|
||||
Style::default().fg(Color::Blue),
|
||||
Style::default().fg(Color::Red),
|
||||
];
|
||||
|
||||
let mut h: f32 = 0.4; // We don't need random colours... right?
|
||||
for _i in 0..(num_to_gen - 9) {
|
||||
for _i in 0..(num_to_gen - 10) {
|
||||
h = gen_hsv(h);
|
||||
let result = hsv_to_rgb(h, 0.5, 0.95);
|
||||
colour_vec.push(Style::default().fg(Color::Rgb(result.0, result.1, result.2)));
|
||||
|
|
Loading…
Reference in New Issue