pixel color

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

pixel color

Post by black » Wed Dec 23, 2009 3:20 pm

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...


User avatar
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands

Re: pixel color

Post by bartbes » Wed Dec 23, 2009 3:25 pm

Is only possible on ImageData in 0.6.0.

User avatar
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Denver, CO

Re: pixel color

Post by TechnoCat » Thu Dec 24, 2009 4:43 pm

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 4 guests