authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 19:38:24 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2023-09-14 19:38:24 -07:00
log7669ab8ca2f61cb89672db43a117916d73d84acd
tree94400568d57d8579d67455b673f994ef040dd748
parent4e21659b60dc89e43fe00939e60f5d05bb14889e

LinearRgb: initRGBA() should use f32


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

LinearRgb.zig+1-1
......@@ -8,7 +8,7 @@ g: f32,
88b: f32,
99a: f32,
1010
11pub fn initRGBA(r: u8, g: u8, b: u8, a: u8) Self {
11pub fn initRGBA(r: f32, g: f32, b: f32, a: f32) Self {
1212 std.debug.assert(r >= 0.0 and r <= 1.0);
1313 std.debug.assert(g >= 0.0 and g <= 1.0);
1414 std.debug.assert(b >= 0.0 and b <= 1.0);