diff --git a/pixelflut/canvas.go b/pixelflut/canvas.go index 6f89971..52f57fe 100644 --- a/pixelflut/canvas.go +++ b/pixelflut/canvas.go @@ -65,9 +65,8 @@ func readPixels(target *image.NRGBA, conn net.Conn, stop chan bool) { log.Fatal(err) } - // parse response ("PX \n") - // NOTE: shoreline sends alpha, pixelnuke does not! - colorStart := len(res) - 9 + // parse response ("PX ") + colorStart := len(res) - 7 x, y := parseXY(res[3:colorStart]) hex.Decode(col, res[colorStart:len(res)-1])