#colors rgba bytes to int and back?
35 messages · Page 1 of 1 (latest)
sounds like an issue with your binding
they should have defined the color as having unsigned bytes
the numbers printed are not exactly weird. they're 256 - x for x >= 128
you can maybe cast them
oh hmm
yea mean that this is a "bugg"?
but yea, if thats the problem then its not the biggest of deals, because i can just translate them by hand a bit i think
they should have defined the java version of the color struct using unsigned values not signed.
but this isn't a raylib issue
wait is this java?
yeah
then it's clear, java has no unsigned
then that'd be why
yea XD, kotlin is just cool looking java (or some may say is ugly java, lol)
so this is a langauge limitation
dafaq is val in Java
you have to convert, or use a langauge that sucks less
haha
you are not the first one saying that this language sucks
I have used java before. I was not impressed
okay, but thnx!, i am going to make my way around it
i just like how fun it is to write kotlin lol
and also creating andriod apps with it (but that has nothing to do with raylib)
the inability to accurately represent the data in memory does not sound 'fun' to write in 🙂
yea true, i ment clean
but yea, if you want to go for memory efficiency, then you really need to stay away from java
but the differentse between these 2 languages is not going to make a difference in effeciency for a simple 2D platformer
same goes for a simple mobile app
so then i prefere a easy to read language above a more memory managable language