top of page

One Fish, Two Fish, Red Fish, Blue Fish

andreahywong

Onto tracking more than one fish! I mean... colour!

Since the abstraction is more or less done, putting it together to track several colors just required some windows and gates! No doors though...


Incoming Tracked Colours

This was almost already all done! We just needed to create some paths so that several colours could be selected and tracked for without replacing each other. Hence... a gate! Here we used 4 gates for 4 different colours for now. (I'm currently thinking of having 6 different colours for CHIMIRA (the 3 primary and 3 secondary colours) but it'll depend on how sensitive to colour it will be. Perhaps more than 6 in the #future!)


Each gate number routes to a different Tracker instance so a gate number must be selected prior to selecting a colour or else it will be overridden. To make it cleaner, we've started using more sends and receives here.


Output of Tracked Colours

Like mentioned previously, our #Tracker outputs a processed video, location, and rgb values of our tracked colour.


To visualize all of our tracked colours, here we've got a [jit.lcd] that paints #ovals in the location of our tracked colours against a black background. And get this: I've gotten them to appear as the same colour as they're being tracked! Isn't that neat?


The huge trigger is sending out #bangs from our metro as well as clearing every oval's previous location to always update the user on the current location of the tracked colour.



Some new [objects] and terms I played with and learned today:

  • [jit.lcd] - a wrapper that allows for QuickDraw commands (like painting our coloured dots!)

Four colours being simultaneously tracked

Onto data structures to use this data!

5 views0 comments

Recent Posts

See All

Comments


© 2019 by Andrea Wong

bottom of page