getNextOpaquePoint static method
Implementation
static BasicPixel? getNextOpaquePoint({required Image source}) {
for (var y = 0; y < source.height; y++) {
for (var x = 0; x < source.width; x++) {
var color = source.getPixel(x, y);
if (getAlpha(color) > 0) {
return BasicPixel(color: color, point: Point(x, y));
}
}
}
return null;
}