| author | |
| committer | |
| log | c1d46a4d37839675182d91ad2d2b8e799850a8d6 |
| tree | c92a742a3c5c963a0a19a62b74847d729438624c |
| parent | 7669ab8ca2f61cb89672db43a117916d73d84acd |
2 files changed, 2 insertions(+), 2 deletions(-)
LinearRgb.zig+1-1| ... | @@ -22,7 +22,7 @@ pub fn initRGBA(r: f32, g: f32, b: f32, a: f32) Self { | ... | @@ -22,7 +22,7 @@ pub fn initRGBA(r: f32, g: f32, b: f32, a: f32) Self { |
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | pub fn eql(x: Self, y: Self) bool { | 24 | pub fn eql(x: Self, y: Self) bool { |
| 25 | return x.r == y.r and x.g == y.g and x.b == y.b; | 25 | return x.r == y.r and x.g == y.g and x.b == y.b and x.a == y.a; |
| 26 | } | 26 | } |
| 27 | 27 | ||
| 28 | pub fn relative_luminance(x: Self) f32 { | 28 | pub fn relative_luminance(x: Self) f32 { |
sRGB.zig+1-1| ... | @@ -42,7 +42,7 @@ pub fn parseHex(input: []const u8) Self { | ... | @@ -42,7 +42,7 @@ pub fn parseHex(input: []const u8) Self { |
| 42 | } | 42 | } |
| 43 | 43 | ||
| 44 | pub fn eql(x: Self, y: Self) bool { | 44 | pub fn eql(x: Self, y: Self) bool { |
| 45 | return x.r == y.r and x.g == y.g and x.b == y.b; | 45 | return x.r == y.r and x.g == y.g and x.b == y.b and x.a == y.a; |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions, writer: anytype) !void { | 48 | pub fn format(x: Self, comptime fmt: []const u8, options: std.fmt.FormatOptions, writer: anytype) !void { |