Skip to content

Instantly share code, notes, and snippets.

@dermotbalson
Created May 18, 2013 09:49
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 dermotbalson/5603895 to your computer and use it in GitHub Desktop.
Save dermotbalson/5603895 to your computer and use it in GitHub Desktop.
post1
-- qwerty
-- Use this function to perform your initial setup
function setup()
print("Hello World!")
print(WIDTH,HEIGHT)
x=0
end
-- This function gets called once every frame
function draw()
-- This sets a dark background color
background(40, 40, 50)
-- This sets the line thickness
strokeWidth(5)
-- Do your drawing here
line(x,10,400,250)
x=x+1
if x>WIDTH then x=0 end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment