Ali Torabi

Digital Architecture & Technology

Collect items of the array which satisfy your condition.


In this video we use collection controller to find the position of those points which they are located on white sections of an image. The image is being process by a bitmap controller and if the value is greater than .5 (gray) the test controller returns true. collection controller goes through the entire array of points and collects only the position of the points which meets our condition. to set the position of each box to the corresponding point in collection we use a list controller. list controller takes the index value (location of the box in the array) and return the same item from the collection.

, , , , , , ,
March 1, 2012 at 11:27 am Comments (0)