Support additive colors in color picker

This commit is contained in:
Emil Ernerfeldt
2021-01-03 18:16:12 +01:00
parent 5c8df6925d
commit 10a23d18e1
17 changed files with 239 additions and 106 deletions
@@ -57,7 +57,7 @@ impl super::View for DancingStrings {
let thickness = 10.0 / mode;
cmds.push(paint::PaintCmd::line(
points,
Stroke::new(thickness, Color32::additive_luminance(196)),
Stroke::new(thickness, Color32::from_additive_luminance(196)),
));
}