Add Rgbf struct with conversions and arithmetic operations.

This commit is contained in:
Overlord committed 2026-10-19 23:17:05 +02:00
1 parent 635e212daa
commit 27d5ef042a
4 files changed
+167 -7

No files matched your search

+3 -1
View File
@@ -1,4 +1,4 @@
use super::Rgb;
use super::{ Rgb, Rgbf };
use crate::smooth::Lerp;
#[derive(Debug, Clone, Copy, PartialEq, Default)]
@@ -13,6 +13,8 @@ impl LinearRgb
{
pub fn to_rgb(self) -> Rgb { todo!() }
pub fn to_rgbf(self) -> Rgbf { todo!() }
pub fn luminance(self) -> f32 { todo!() }
}