from graph import *
from random import *
color = ["red", "green", "blue"]
obj = polygon([(10,10),(100,10),(50,50),(10,10)])
def newPoint():
x=randint(xCoord(obj))
y=randint(yCoord(obj))
col = choice(color)
penSize(3)
point(x,y,col)
onTimer(newPoint,5)
run()