Skip to content

Commit

Permalink
color: minor style
Browse files Browse the repository at this point in the history
  • Loading branch information
arrufat committed Aug 12, 2024
1 parent d050a59 commit b5a063e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/color.zig
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,9 @@ pub const Hsv = struct {
}
}
return .{
.r = @intFromFloat(@max(0, @min(255, @round(r * 255)))),
.g = @intFromFloat(@max(0, @min(255, @round(g * 255)))),
.b = @intFromFloat(@max(0, @min(255, @round(b * 255)))),
.r = @intFromFloat(@round(255 * @max(0, @min(1, r)))),
.g = @intFromFloat(@round(255 * @max(0, @min(1, g)))),
.b = @intFromFloat(@round(255 * @max(0, @min(1, b)))),
};
}

Expand Down

0 comments on commit b5a063e

Please sign in to comment.