Capturing the RBG of a sequence of pixels
Posted: Sun Jun 19, 2016 12:39 pm
I have a photograph which I wish to stylise.
I intend to replace, both vertically and horizontally, ever second pixel's color value with that o the preceding one.
Thus, the color value of the pixel at 1,1 will also be given to the pixels at 1,2 and 2,1 and 2,2>
I have expected that the script for capturing the RGB of a given pixel might be
repeat with a = 1 to 500
if a mod 2 = 1 then
repeat with b = 1 to 500
if b mod 2 = 1 then
put a & "," & b into HV
put the backgroundColor of HV into NewColor
go to card 2
set the pencolor to NewColor
choose pencil tool
and so forth.
But the "backgroundcolor" gives me an error.
Any advice?
I intend to replace, both vertically and horizontally, ever second pixel's color value with that o the preceding one.
Thus, the color value of the pixel at 1,1 will also be given to the pixels at 1,2 and 2,1 and 2,2>
I have expected that the script for capturing the RGB of a given pixel might be
repeat with a = 1 to 500
if a mod 2 = 1 then
repeat with b = 1 to 500
if b mod 2 = 1 then
put a & "," & b into HV
put the backgroundColor of HV into NewColor
go to card 2
set the pencolor to NewColor
choose pencil tool
and so forth.
But the "backgroundcolor" gives me an error.
Any advice?