Made buffer's dot private

This commit is contained in:
2022-11-15 17:41:08 -05:00
parent 77cf88b856
commit 85994112cf
3 changed files with 13 additions and 14 deletions

View File

@@ -47,8 +47,7 @@ func redraw () {
text := "RAINBOW :D"
width, height := application.Size()
application.Dot.X = (width - len(text)) / 2
application.Dot.Y = height / 2
application.SetDot((width - len(text)) / 2, height / 2)
fmt.Fprintln(application, text)
application.SetColor(0, 0, stone.ColorYellow)

View File

@@ -55,7 +55,7 @@ func main () {
func redraw () {
currentTime = time.Now()
application.ResetDot()
application.SetDot(0, 0)
fmt.Fprintln(application, "hellorld!")
hour := currentTime.Hour()