authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 19:45:57 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 19:45:57 -07:00
log51b5693c8132e997e68f96046a1f402f2f85902f
tree7d34c347d31be6067478c5dc1efd4cdf8972be40
parentc1d46a4d37839675182d91ad2d2b8e799850a8d6

LinearRgb: add field descriptions


1 files changed, 4 insertions(+), 4 deletions(-)

LinearRgb.zig+4-4
...@@ -3,10 +3,10 @@...@@ -3,10 +3,10 @@
3const std = @import("std");3const std = @import("std");
4const Self = @This();4const Self = @This();
55
6r: f32,6r: f32, // red
7g: f32,7g: f32, // green
8b: f32,8b: f32, // blue
9a: f32,9a: f32, // alpha
1010
11pub fn initRGBA(r: f32, g: f32, b: f32, a: f32) Self {11pub fn initRGBA(r: f32, g: f32, b: f32, a: f32) Self {
12 std.debug.assert(r >= 0.0 and r <= 1.0);12 std.debug.assert(r >= 0.0 and r <= 1.0);