mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-27 10:07:56 +00:00
LibGfx: Use valid hsv values in painter debug
This commit is contained in:
@@ -1569,7 +1569,7 @@ void Painter::fill_path(Path& path, Color color, WindingRule winding_rule)
|
||||
#ifdef FILL_PATH_DEBUG
|
||||
size_t i { 0 };
|
||||
for (auto& segment : segments)
|
||||
draw_line(segment.from, segment.to, Color::from_hsv(++i / segments.size() * 255, 255, 255), 1);
|
||||
draw_line(segment.from, segment.to, Color::from_hsv(++i / segments.size() * 360.0, 1.0, 1.0), 1);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user