Refactor canvas into seperate repo

This commit is contained in:
Caleb Bassi
2019-01-26 05:19:45 -08:00
parent ad36843630
commit 067b2c5514
5 changed files with 25 additions and 68 deletions

View File

@@ -17,8 +17,7 @@ func main() {
c := ui.NewCanvas()
c.SetRect(0, 0, 50, 50)
c.Line(image.Pt(0, 0), image.Pt(80, 50), ui.ColorClear)
c.Line(image.Pt(0, 5), image.Pt(3, 10), ui.ColorClear)
c.SetLine(image.Pt(0, 0), image.Pt(10, 20), ui.ColorWhite)
ui.Render(c)