diff --git a/docs/pixelcanvas.io.md b/docs/pixelcanvas.io.md index 05bb859..c8572c6 100644 --- a/docs/pixelcanvas.io.md +++ b/docs/pixelcanvas.io.md @@ -89,9 +89,9 @@ Palette(15)\R = 130 : Palette(15)\G = 000 : Palette(15)\B = 128 - Download chunk collection (15x15 chunks): - - URL: `https://pixelcanvas.io/api/bigchunk/ccx.ccy.bmp` + - URL: `https://api.pixelcanvas.io/api/bigchunk/ccx.ccy.bmp` With `ccx` and `ccy` being the offset of the chunk collection. - Example: `https://pixelcanvas.io/api/bigchunk/-10.5.bmp` + Example: `https://api.pixelcanvas.io/api/bigchunk/-10.5.bmp` Make sure to disable any caching for this request. - Result: Raw image data, 4 bit per pixel: diff --git a/main.go b/main.go index 4d7684e..bb9a727 100644 --- a/main.go +++ b/main.go @@ -49,7 +49,7 @@ func init() { log.Fatalf("Can't get working directory") } - version, err = semver.NewVersion("0.1.2") + version, err = semver.NewVersion("0.1.3") if err != nil { fmt.Println(err.Error()) } diff --git a/pixelcanvas.io.go b/pixelcanvas.io.go index 020d749..dedc080 100644 --- a/pixelcanvas.io.go +++ b/pixelcanvas.io.go @@ -173,7 +173,7 @@ func newPixelcanvasio() (connection, *canvas) { startTime := time.Now() log.Tracef("Download at %v started", cc) - r, err := myClient.Get(fmt.Sprintf("https://pixelcanvas.io/api/bigchunk/%v.%v.bmp", cc.X, cc.Y)) + r, err := myClient.Get(fmt.Sprintf("https://api.pixelcanvas.io/api/bigchunk/%v.%v.bmp", cc.X, cc.Y)) if err != nil { log.Errorf("Can't get bigchunk at %v: %v", cc, err) return