parent
0700f6c11b
commit
e9fc8e6c48
|
@ -65,9 +65,8 @@ func readPixels(target *image.NRGBA, conn net.Conn, stop chan bool) {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// parse response ("PX <x> <y> <rrggbbaa>\n")
|
// parse response ("PX <x> <y> <rrggbb>")
|
||||||
// NOTE: shoreline sends alpha, pixelnuke does not!
|
colorStart := len(res) - 7
|
||||||
colorStart := len(res) - 9
|
|
||||||
x, y := parseXY(res[3:colorStart])
|
x, y := parseXY(res[3:colorStart])
|
||||||
hex.Decode(col, res[colorStart:len(res)-1])
|
hex.Decode(col, res[colorStart:len(res)-1])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue