Skip to content

Instantly share code, notes, and snippets.

@chrisdugne
Created April 2, 2019 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisdugne/c40b862192ba4d722cd0cfaa41c2c5b8 to your computer and use it in GitHub Desktop.
Save chrisdugne/c40b862192ba4d722cd0cfaa41c2c5b8 to your computer and use it in GitHub Desktop.
local paint = {
type = 'gradient',
color2 = {colorize('#ffffff')},
color1 = {colorize('#00B0FF')},
direction = 'down'
}
local rect = display.newRect(self.view, W / 2, H / 2, W, H)
rect.fill = paint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment