An open API service indexing awesome lists of open source software.

https://github.com/andrewstuart/rplace


https://github.com/andrewstuart/rplace

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

rplace is a Go client for the r/place canvas and updates.

Its purpose is to be able to more simply diff the state of the canvas with some
desired state as given by an image and x,y location.

```go
var cli rplace.Client
updates, err := cli.Subscribe(context.Background())
if err != nil {
log.Fatal(err)
}

for upds := range updates {
for _, upd := range upds {
fmt.Println(upd.Link(), " => " upd.Color.Name)
}
}
```

For a more practical example, see [the cmd/rplace
package](./cmd/rplace/main.go).

# TODO

- [ ] Add multiple desired image states tracking with the same update feed.
- [ ] Don't check alpha 0