2d matrices, bitgrids, images?
Hi all,
I am interested in doing some 2d matrix manipulation to generate images based on incoming data. In ca.pf I can see that something like this has to be going on, but I don't have any understanding of the scaf stuff so I am missing the part where it sets the points of the bitgrid according to the rules.
What I would like to be able to do is say, have a 1-bit image in a 320x240 grid - a pixel in this grid will either be on (white) or off (black). I would like to be able to copy, shift, reassign pixels, rows, and columns within this grid, update to the display and create moving grids of pixels this way. What would be a good / proper method to do this? bitgrid: <at> seems to let you get the value of an index within the grid but I don't know how to do it. I assume bitgrid:! allows you to set it - but how can we say at point (x, y) do this or that? How do you even format a 2d location index for bitgrids??
The only other graphics language I know is Processing, which is very heavily steeped in x,y pixel coords for everything, so I am sure my question reeks of this kind of thinking :) Any help much appreciated!
Learning pf has been fun so far - I am sure I will have many more questions!
Kevin
_______________________________________________
PF-list mailing list
PF-list@...
http://lists.goto10.org/cgi-bin/mailman/listinfo/pf-list