1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::ColorMap;
use super::*;


pub struct ScatterGradient {}

impl ColorGradient for ScatterGradient {
    fn blend(&self, lhs: RGBA32, _: RGBA32, _: f32) -> RGBA32 {
        lhs
    }
    fn get_color(&self, palette: &impl ColorMap, position: f32) -> RGBA32 {
        palette.get_color(position)
    }
}