diff --git a/src/nodes/drawable/lines.rs b/src/nodes/drawable/lines.rs index 7d236a8..919a439 100644 --- a/src/nodes/drawable/lines.rs +++ b/src/nodes/drawable/lines.rs @@ -61,7 +61,7 @@ impl Lines { .map(|p| SkLinePoint { point: transform_mat.transform_point3a(Vec3A::from(p.point)).into(), thickness: p.thickness, - color: Color32::from_slice(p.color.map(|c| (c / 255.0) as u8).as_slice()), + color: Color32::from_slice(p.color.map(|c| (c * 255.0) as u8).as_slice()), }) .collect(); if data.cyclic && !points.is_empty() {