Guild icon
DDraceNetwork
Development / developer
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 2022-03-10 00:00:00Z and 2022-03-11 00:00:00Z
Avatar
Hey guys I'm working on a skin renderer with colors(thanks to Nagi01 for helping me) and I think I've found a problem with teeworlds' way of converting hsl to rgb and hex
00:34
I don't think that this is game breaking it's just that when I write player_color_body in tw console i get this: Value: 13149440 H: 282°, S: 64%, L: 50% R: 161, G: 44, B: 210, #A12CD2 and when I use my script I get this: Value: 13149440 H: 282°, S: 64%, L: 50% R: 160, G: 46, B: 209, #A02ED1
00:34
At first I thought that this was a problem with my code but when I used another website for converting hsl to rgb and hex i got the results from my script
Avatar
It smells like a rounding error somewhere. Maybe due to the way we quantize the hsl hexcone
Avatar
Either that or a problem with converting hsl to rgb and hex
Avatar
Feel free to give it a check. I think I got the algorithm from wikipedia but it is possible I made a mistake somewhere
Avatar
I would but i'm a web developer
23:26
i cant understand c++
Exported 8 message(s)