Revert "bugfix: clear before next gen"

This reverts commit a65dcddbc7.
This commit is contained in:
Baipyrus 2024-04-17 08:18:22 +02:00
parent de00ca4af9
commit a9d600aaed
2 changed files with 1 additions and 7 deletions

View File

@ -11,8 +11,7 @@ import (
func output(client *resty.Client, url string, scale, width, height uint, arr [][]Cell) {
goterm.MoveCursor(1, 4)
// Prepare instructions for matrix
instructions := make([]interface{}, 1)
instructions[0] = Clear{Endpoint: CLEAR}
instructions := make([]interface{}, 0)
// Append all live cells as pixel instructions
for j := 0; j < int(height/scale); j++ {
for i := 0; i < int(width/scale); i++ {

View File

@ -11,7 +11,6 @@ const (
UPDATE Endpoint = "update"
PIXEL Endpoint = "pixel"
COLOR Endpoint = "color"
CLEAR Endpoint = "clear"
)
type Rectangle struct {
@ -22,10 +21,6 @@ type Rectangle struct {
Endpoint Endpoint `json:"endpoint"`
}
type Clear struct {
Endpoint Endpoint `json:"endpoint"`
}
type Update struct {
Endpoint Endpoint `json:"endpoint"`
}