Error in the wiki?

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
User avatar
CapitalEx
Prole
Posts: 8
Joined: Fri Jul 24, 2015 2:33 am

Error in the wiki?

Post by CapitalEx »

The LÖVE wiki shows that love.graphics.setBackgroundColor can take four arguments, the last being alpha, but this has no effect. Is this a bug or an error with the wiki :huh:?
~~<Ɵ/\/\_: *snake noises*
User avatar
slime
Solid Snayke
Posts: 3160
Joined: Mon Aug 23, 2010 6:45 am
Location: Nova Scotia, Canada
Contact:

Re: Error in the wiki?

Post by slime »

Neither – it does take alpha and it does technically affect the framebuffer inside the window, it just doesn't make the window transparent (it's not currently possible to make the window transparent, and doing so would be separate from the opacity of the framebuffer inside the window).

There are currently no [wiki]BlendMode[/wiki]s which use the screen's current alpha to affect its color, but if there were then the alpha component of setBackgroundColor would affect them.

If you call [wiki]love.graphics.newScreenshot[/wiki](true) to make it include the alpha values of the screen in the screenshot's data, you can find out what the alpha values of each pixel on the screen are.
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 4 guests