Made buffer's dot private
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -55,7 +55,7 @@ func main () {
|
||||
func redraw () {
|
||||
currentTime = time.Now()
|
||||
|
||||
application.ResetDot()
|
||||
application.SetDot(0, 0)
|
||||
fmt.Fprintln(application, "hellorld!")
|
||||
|
||||
hour := currentTime.Hour()
|
||||
|
||||
Reference in New Issue
Block a user