rGradient function

List<List<num>> rGradient (
  1. Function ease,
  2. num n,
  3. List<num> color1,
  4. List<num> color2

returns a rounded, length n array of Vector3 colours. colours are between color1 and color2, and are spaced according to the easing function easeFn.


List<List<num>> rGradient(
        Function ease, num n, List<num> color1, List<num> color2) =>
    gradient(ease, n, color1, color2)
        .map((color) => color.map((c) => c.round()).toList())