extend("kanvas")
extend("gpu")

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

res = kanvas:display(win)


kanvas:triangle(
  win,
  [[150,150], [350,180], [220,300]],
  "#FF00FF"
)

kanvas:refresh(win)
