message: Some moving of lines
diff: @@ -52,35 +52,14 @@ pub struct CanvasData {
  /// Generates random colours.
  /// Strategy found from https://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/
  fn gen_n_colours(num_to_gen: i32) -> Vec<Color> {
  - let mut colour_vec: Vec<Color> = vec![
  - Color::LightBlue,
  - Color::LightYellow,
  - Color::Red,
  - Color::Green,
  - Color::LightCyan,
  - Color::LightMagenta,
  - ];
  -
  - let mut h: f32 = 0.4; // We don't need random colours... right?
  - for _i in 0..num_to_gen {
  - h = gen_hsv(h);
  - let result = hsv_to_rgb(h, 0.5, 0.95);
  - colour_vec.push(Color::Rgb(result.0, result.1, result.2));
  - }
  -
  - colour_vec
  -}
  -
  fn gen_hsv(h: f32) -> f32 {
  let new_val = h + GOLDEN_RATIO;
  -
  if new_val > 1.0 {
  new_val.fract()
  } else {
  new_val
  }
  }
  -
  fn float_min(a: f32, b: f32) -> f32 {
  match a.partial_cmp(&b) {
  Some(x) => match x {
  @@ -91,7 +70,6 @@ fn float_min(a: f32, b: f32) -> f32 {
  None => a,
  }
  }
  -
  fn float_max(a: f32, b: f32) -> f32 {
  match a.partial_cmp(&b) {
  Some(x) => match x {
  @@ -102,7 +80,6 @@ fn float_max(a: f32, b: f32) -> f32 {
  None => a,
  }
  }
  -
  /// This takes in an h, s, and v value of range [0, 1]
  /// For explanation of what this does, see
  /// https://en.wikipedia.org/wiki/HSL_and_HSV#HSV_to_RGB_alternative
  @@ -119,6 +96,26 @@ fn hsv_to_rgb(hue: f32, saturation: f32, value: f32) -> (u8, u8, u8) {
  )
  }
  + // Generate colours
  + let mut colour_vec: Vec<Color> = vec![
  + Color::LightBlue,
  + Color::LightYellow,
  + Color::Red,
  + Color::Green,
  + Color::LightCyan,
  + Color::LightMagenta,
  + ];
  +
  + let mut h: f32 = 0.4; // We don't need random colours... right?
  + for _i in 0..num_to_gen {
  + h = gen_hsv(h);
  + let result = hsv_to_rgb(h, 0.5, 0.95);
  + colour_vec.push(Color::Rgb(result.0, result.1, result.2));
  + }
  +
  + colour_vec
  +}
  +
  pub fn draw_data<B: backend::Backend>(terminal: &mut Terminal<B>, app_state: &mut app::App, canvas_data: &CanvasData) -> error::Result<()> {
  let border_style: Style = Style::default().fg(BORDER_STYLE_COLOUR);
  let highlighted_border_style: Style = Style::default().fg(HIGHLIGHTED_BORDER_STYLE_COLOUR);
  