Unnamed
public php v1 · immutable $C = imagegetpixel($im,$x,$y); $width = 1; while($C==imagegetpixel($im,$x + 1,$y)){ $width++; $x++; $C = imagegetpixel($im,$x,$y); } $C = imagegetpixel($im,$x,$y); $width = 1; while($C==imagegetpixel($im,$x + 1,$y)){ $width++; $x++; $C = imagegetpixel($im,$x,$y); }