Skip to content

Instantly share code, notes, and snippets.

@walterlua
Created September 7, 2011 23:19
Show Gist options
  • Save walterlua/1202106 to your computer and use it in GitHub Desktop.
Save walterlua/1202106 to your computer and use it in GitHub Desktop.
Gradient on text demo in Corona SDK
local myText = display.newText( "Hello, World!", 0, 0, native.systemFont, 40 )
myText.x = display.contentWidth * 0.5
myText.y = display.contentWidth * 0.25
local g = graphics.newGradient( { 255, 255, 0 }, { 200 }, "down" )
myText:setTextColor( g )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment