Development discussion. Logged to https://ddnet.tw/irclogs/ Connected with DDNet's IRC channel, Matrix room and GitHub repositories — IRC: #ddnet on Quakenet | Matrix: #ddnet-developer:matrix.org GitHub: https://github.com/ddnet
Between 2023-04-19 00:00:00Z and 2023-04-20 00:00:00Z
ah thanks, you're right it's $, don't know where I got & from. Using & does appear to take a value but it's just always gray, dunno what it's expecting there
a decimal representation of the bits of hsl values put together
can you explain a bit more about that? I'd like to find a way to have a hex value, and convert it to this format without using the game
tela
what is that color format up top? I thought for a while it was just decimal but it isn't
The first one is classic teeworldss colors. 3 byte packed hsl
tela
ah thanks, you're right it's $, don't know where I got & from. Using & does appear to take a value but it's just always gray, dunno what it's expecting there
a decimal representation of the bits of hsl values put together
can you explain a bit more about that? I'd like to find a way to have a hex value, and convert it to this format without using the game
Going from hex rgb to tw colors you first need to go from rgb to hsl, let's talk about normalized hsl (components out of 1.0), then the value is (h * 256 << 16 + s * 256 << 8 + l * 256)