mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibGfx: Use valid hsv values in painter debug
This commit is contained in:
parent
7a46e0fa35
commit
bb5014fad7
Notes:
sideshowbarker
2024-07-19 03:10:04 +09:00
Author: https://github.com/LepkoQQ Commit: https://github.com/SerenityOS/serenity/commit/bb5014fad74 Pull-request: https://github.com/SerenityOS/serenity/pull/3301
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue