[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Resizable Grid for Cellular Automata




Hi Saman

Check out a class called BoxGrid in the ixiViews Quarks.
There you can create cells, that take mouseactions, etc.

thor

On 14 May 2009, at 20:03, Saman Badakhshan wrote:

Hello.

I want to program a Cellular Automata in SuperCollider. Can somebody give me some hints about what Cocoa GUI components would be best suited for this task? I want to create a resizable grid window which allows a user to click on individual cells on the grid in order to activate them. I have been experimenting with using SCUserView objects arranged using a GridLayout manager, but so far I am having trouble getting this to work. If somebody could post some simple code showing how to create a resizable GUI grid I would be very greatful.
cheers,
Saman

(
var w;

w=Window.new.front;
w.view.decorator = GridLayout(w, 10,10);

(10*10).do{ SCUserView(w, 180@20).background_(Color.rand)};


)

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/