Hi everyone! I'm looking for information/help for what the title says.
Basically, I have a project I hope to release soon that involves filt/bray colors heavily and I was wondering if there's some direct conversion from a RGB hex string to the 30 bit color values that filt/phot/bray/etc... use.
I tried a direct conversion with no luck, and looking at the values for each bit I see there's individual bits for cyan and yellow, so this really has me scratching my head.
This is NOT for any image plotting (I would never post a save like that,) and please don't suggest using anything related to deco. I have no qualms with the deco layer, but it's completely unrelated to what I'm doing with the colors.
local function nbit(n,d)
return (2^n-1)*2^d
end
local function bizr(r,y,g,c,b)
return nbit(r,21)+nbit(y,18)+nbit(g,12)+nbit(c,9)+nbit(b,0)
end