im having issue with rgb values

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
hawli
Prole
Posts: 1
Joined: Thu Jun 30, 2022 1:26 pm

im having issue with rgb values

Post 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
User avatar
darkfrei
Party member
Posts: 1169
Joined: Sat Feb 08, 2020 11:09 pm

Re: im having issue with rgb values

Post 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
:awesome: in Lua we Löve
:awesome: Platformer Guide
:awesome: freebies
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: im having issue with rgb values

Post by ReFreezed »

Color values go between 0 and 1 in the later LÖVE versions. Earlier it was between 0 and 255.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 51 guests