Skip to content

andrewstuart/rplace

Repository files navigation

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.

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.

TODO

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published