| author | |
| committer | |
| log | 51b5693c8132e997e68f96046a1f402f2f85902f |
| tree | 7d34c347d31be6067478c5dc1efd4cdf8972be40 |
| parent | c1d46a4d37839675182d91ad2d2b8e799850a8d6 |
1 files changed, 4 insertions(+), 4 deletions(-)
LinearRgb.zig+4-4| ... | ... | @@ -3,10 +3,10 @@ |
| 3 | 3 | const std = @import("std"); |
| 4 | 4 | const Self = @This(); |
| 5 | 5 | |
| 6 | r: f32, | |
| 7 | g: f32, | |
| 8 | b: f32, | |
| 9 | a: f32, | |
| 6 | r: f32, // red | |
| 7 | g: f32, // green | |
| 8 | b: f32, // blue | |
| 9 | a: f32, // alpha | |
| 10 | 10 | |
| 11 | 11 | pub fn initRGBA(r: f32, g: f32, b: f32, a: f32) Self { |
| 12 | 12 | std.debug.assert(r >= 0.0 and r <= 1.0); |