From: Diego Bernardes Date: 2008-04-10T03:41:49+09:00 Subject: RMagick and Collision Mask Im trying to make a perfect pixel collision in a game and im gonna use a collision mask to do this, the physics its with chipmunk and i need a polygon to do it, my idea is, read the image pixel per pixel and store in a matrix the x and y of the black pixels, later with this matrix i can create a poligon just geting the first and last element from the column in each line of the matrix. The problem is the RMagick, i know how to read the image pixel per pixel but dont know how to compare the color to get only the black pixels Someone can help me? thx :) -- Posted via http://www.ruby-forum.com/.