I was wondering how to get the color of the pixel where the mouse was clicked... getColor() doesn´s seem to work for that... Any other suggestions?
I am trying to make a mouse map for a hexagon...
Thanks!
pixel color
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: pixel color
Is only possible on ImageData in 0.6.0.
- TechnoCat
- Inner party member
- Posts: 1611
- Joined: Thu Jul 30, 2009 12:31 am
- Location: Milwaukee, WI
- Contact:
Re: pixel color
You might be able to do it if you take a screenshot and then grab the pixel.
love.graphics.newScreenshot( )
ImageData:getPixel( x, y )
love.graphics.newScreenshot( )
ImageData:getPixel( x, y )
Who is online
Users browsing this forum: Google [Bot] and 10 guests