| ... | @@ -75,6 +75,7 @@ pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions, | ... | @@ -75,6 +75,7 @@ pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions, |
| 75 | | 75 | |
| 76 | pub fn to_linear_rgb(x: Self) color.LinearRgb { | 76 | pub fn to_linear_rgb(x: Self) color.LinearRgb { |
| 77 | const lut = comptime blk: { | 77 | const lut = comptime blk: { |
| | 78 | @setEvalBranchQuota(10_000); |
| 78 | var res: [256]f32 = undefined; | 79 | var res: [256]f32 = undefined; |
| 79 | for (0..256) |i| { | 80 | for (0..256) |i| { |
| 80 | const c = @as(f32, @floatFromInt(i)) / 255.0; | 81 | const c = @as(f32, @floatFromInt(i)) / 255.0; |