def start(): global car1 background("track.png") car1 = car() car1.init() car1.draw() running = True update()
from tealight.art import (color, line, spot, circle, box, image, text, background) from tealight.art import (screen_width, screen_height) from github.daviesian.logo.lib import lib_func print lib_func() print "This is art mode!" print screen_width print screen_height background("paper.jpg") line(0,0,screen_width, screen_height) spot(200,300, 20) circle(300,200, 20) box(500, 500, 60, 60) image(200,200,"bird.png") line(560,0,560,495) text(600, 100, "Hello Tealight!") lastx = None lasty = None
from tealight.art import (color, line, spot, circle, box, image, text, background) from tealight.art import (screen_width, screen_height) print "This is art mode!" print screen_width print screen_height background("track.png") line(0,0,screen_width, screen_height) spot(200,300, 20) circle(300,200, 20) box(500, 500, 60, 60) image(200,200,"misc/Sword.png") line(560,0,560,495) text(600, 100, "Hello Tealight!") lastx = None lasty = None hue = 0 def handle_mousemove(x,y): global lastx, lasty, hue
from tealight.art import (color, line, spot, circle, box, image, text, background) from tealight.art import (screen_width, screen_height) print "This is art mode!" print screen_width print screen_height background("paper.jpg") line(0, 0, screen_width, screen_height) spot(200, 300, 20) circle(300, 200, 20) box(500, 500, 60, 60) image(200, 200, "bird.png") line(560, 0, 560, 495) text(600, 100, "Hello Tealight!") lastx = None lasty = None hue = 0
def grid(x,y): background("paper.jpg") for i in range (0, 10): row(x, y) y = y + size welcome()