Traxar

Results 7 comments of Traxar

yes, I would still expect the prints to match, though

Already got an idea on how to do the conversions? :) I think `rbg.to(Hsv(f32))` would be nice but this will require quite a bit of comptime magic ^^'

Very cool :D Zignal will definetly be my goto to do any sorts of color shenanigans (and soon even on the gpu ;))

Be sure to add some type checks here: ```rs pub fn Rgb(comptime T: type) type { switch (@typeInfo(T)) { .float => {}, .int => { // only for rgb if...

Maybe instead of passing the type generating function use an enum as parameter for `to()` this will work nicely with LSPs and look better when using the library from another...

the enum should have one value per colorspace so `to` looks like: ```rs pub fn to(self: Self, color_space: ColorSpace) Color(color_space, T) { // ... } ``` or somthing along those...

Thats very clean ^-^ i like it too :)