moai/moai-dev — pull request #679 by btatarov (2013-04-09 19:55:31+00:00)
Title: MOAIImage:convertToGrayScale ();

Example usage:

image = MOAIImage.new()
image:load("moai.jpg")
image:convertToGrayScale()

texture = MOAITexture.new()
texture:load(image)

sprite = MOAIGfxQuad2D.new ()
sprite:setTexture ( texture )
sprite:setRect ( -128, -128, 128, 128 )

base = MOAIProp2D.new ()
base:setDeck ( sprite )
base:setLoc ( 300, 300 )

myLayer:insertProp ( base )