returns r,g,b,a values.
This would be useful for physics free games...
Feature suggestion: Pixel testing
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Feature suggestion: Pixel testing
I r awsum at looah
Re: Feature suggestion: Pixel testing
Huh? What? Psuedocode, please.
Re: Feature suggestion: Pixel testing
A hypothetical function for this feature might work something like this:
I've only ever needed this kind of functionality when image processing, and to do it point by point in lua is so slow that it's better to put the entire processing function into c. I guess it depends on how much you want to avoid API bloat.
Code: Select all
love.graphics.setColor(0.1,0.2,0.3,0.4)
love.graphics.point(100,200)
r,g,b,a=love.graphics.scan(100,200) -- set r,g,b,a to 0.1,0.2,0.3,0.4
Re: Feature suggestion: Pixel testing
it's probably going to be slow regardless because love uses textures and hardware image blasting.
on the other hand, textures are awesome.
...
8-)
ok, I'm done.
on the other hand, textures are awesome.
...
8-)
ok, I'm done.
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 5 guests