extend("kanvas")

win = kanvas:create([
  title:        "Kanvas",
  width:        800,
  height:       600,
  resize:       false
])


wintwo = kanvas:create([
  title:        "Kanvas",
  width:        800,
  height:       600,
  resize:       false
])



kanvas:display(win)

kanvas:display(wintwo)

kanvas:rectangle(wintwo, [[10,15],[100,60]], "#FF0000")

item["p1"] = kanvas:pixel(win, [10,15], "#FF00FF")
item["p2"] = kanvas:pixel(win, [150,200], "#00FFFF")

item["r1"] = kanvas:rectangle(win, [[10,15],[100,60]], "#FF0000")
item["r3"] = kanvas:rectangle(win, [[120,70],[200,100]], "#00FF00")
item["r3"] = kanvas:rectangle(win, [[140,15],[200,60]], "#FFFF00")

item["r3"] = kanvas:rectangle(win, [[240,115],[500,160]], "#FFFFFF")


item["t1"] = kanvas:triangle(win, [[50,50],[250,80],[120,200]], "#80FF00FF") 

kanvas:remove(win, item["r3"])
kanvas:refresh(win)
kanvas:refresh(wintwo)


