Variants

<-

Nevergrove - An everforest inspired color palette

struct Point {

  x: f64,

}


impl Point {

  // Calculate the difference and square root

  fn calc(&self, other: &Point) -> f64 {

    (self.x - other.x).abs().sqrt()

  }

}


fn main() {

  let p = Point { x: 4.0 };

  println!("Calc:{:.2}", p.calc(&Point { x: 2.0 }));

}


This is a highlighted line :)


RED


ORANGE


YELLOW


GREEN


TEAL


BLUE


PURPLE



RED


ORANGE


YELLOW


GREEN


TEAL


BLUE


PURPLE



RED


ORANGE


YELLOW


GREEN


TEAL


BLUE


PURPLE



There are also neutral: &


TestString -R- -O- -Y- -G- -T- -B- -P- -R- -O- -Y- -G- -T- -B- -P-
TestString -R- -O- -Y- -G- -T- -B- -P- -R- -O- -Y- -G- -T- -B- -P-
TestString -R- -O- -Y- -G- -T- -B- -P- -R- -O- -Y- -G- -T- -B- -P-
TestString -R- -O- -Y- -G- -T- -B- -P- -R- -O- -Y- -G- -T- -B- -P-
TestString -R- -O- -Y- -G- -T- -B- -P- -R- -O- -Y- -G- -T- -B- -P-
TestString -R- -O- -Y- -G- -T- -B- -P- -R- -O- -Y- -G- -T- -B- -P-
TestString -R- -O- -Y- -G- -T- -B- -P- -R- -O- -Y- -G- -T- -B- -P-