From b2f61582f9adeea19de424816bacf0fe078ac28d Mon Sep 17 00:00:00 2001 From: Sandy Noble Date: Fri, 29 Mar 2013 19:19:46 +0000 Subject: [PATCH] Oh and the BLOBables file. --- BLOBables.pde | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 BLOBables.pde diff --git a/BLOBables.pde b/BLOBables.pde new file mode 100644 index 0000000..47cfcf9 --- /dev/null +++ b/BLOBables.pde @@ -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; + } + } +}