Page 1 of 1
im having issue with rgb values
Posted: Thu Jun 30, 2022 1:29 pm
by hawli
normally when i love.graphics.setBackgroundColor( 0, 1, 1 ) literally nothing should happen, but when i did love.graphics.setBackgroundColor( 0, 1, 1 ) green and blue values are changing to 255
basically set background color is going stupid pls help me
Re: im having issue with rgb values
Posted: Thu Jun 30, 2022 2:45 pm
by darkfrei
hawli wrote: ↑Thu Jun 30, 2022 1:29 pm
normally when i love.graphics.setBackgroundColor( 0, 1, 1 ) literally nothing should happen, but when i did love.graphics.setBackgroundColor( 0, 1, 1 ) green and blue values are changing to 255
basically set background color is going stupid pls help me
Be sure that you use the latest version:
https://love2d.org/
https://github.com/love2d/love/releases
Re: im having issue with rgb values
Posted: Thu Jun 30, 2022 2:56 pm
by ReFreezed
Color values go between 0 and 1 in the later LÖVE versions. Earlier it was between 0 and 255.