mirror of
https://github.com/euphy/polargraphcontroller
synced 2025-01-08 19:24:25 +01:00
Oh and the BLOBables file.
This commit is contained in:
parent
3746f10240
commit
b2f61582f9
24
BLOBables.pde
Normal file
24
BLOBables.pde
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
public final class BLOBable_blueBlobs implements BLOBable{
|
||||||
|
private PImage img_;
|
||||||
|
int col = color(0, 0, 255);
|
||||||
|
|
||||||
|
public BLOBable_blueBlobs(PImage img){
|
||||||
|
img_ = img;
|
||||||
|
}
|
||||||
|
|
||||||
|
//@Override
|
||||||
|
public final void init() {
|
||||||
|
}
|
||||||
|
|
||||||
|
//@Override
|
||||||
|
public final void updateOnFrame(int width, int height) {
|
||||||
|
}
|
||||||
|
//@Override
|
||||||
|
public final boolean isBLOBable(int pixel_index, int x, int y) {
|
||||||
|
if( img_.pixels[pixel_index] == col){
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user