pixel color

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
black
Prole
Posts: 2
Joined: Wed Nov 11, 2009 3:07 pm

pixel color

Post by black »

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!
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: pixel color

Post by bartbes »

Is only possible on ImageData in 0.6.0.
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO
Contact:

Re: pixel color

Post by TechnoCat »

You might be able to do it if you take a screenshot and then grab the pixel.
love.graphics.newScreenshot( )
ImageData:getPixel( x, y )
Post Reply

Who is online

Users browsing this forum: No registered users and 176 guests