[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Resizable Grid for Cellular Automata
- To: sc-users@xxxxxxxxxxxxxxxx
- Subject: Re: [sc-users] Resizable Grid for Cellular Automata
- From: thor <th.list@xxxxxxxxx>
- Date: Thu, 14 May 2009 20:15:48 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=Q6sXLdAzZQNaHYABw+RxstGR5NnWwpcM/VQGNI5H2XI=; b=R/M2zfxuBiw/F6WJ5NEvGzrDYeAMqteI/KmCdiDeq0uT3W9gpxo+lEdj5G/kac7j8W yL5YJv5r5BDPncGXmRrO0fnxytk+qaon3czjCQLsL26b+H/Lhk1AOLp/3zM8jarO1zJ7 +CIsv4nuYDAZuUI8ALpDU1WOZQ/IVCR581YXs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=cc0o8fHkRBW3U0jNbdPf1kSgtJ5ZrwLlWF8egOtR/t7NRSdwu8FKlNVkVW+5OH4nPs 9bFMTqbz5WiDmzskpeRT6q4gqlK0d5vE8BnPd5zkBU4pZ/YFBlPbk5fqYLqlTDrVBudZ FBiWiWJI8svZQDGSrXeeENAqLCTrE/6f7kGu8=
- In-reply-to: <4A0C6AF8.5@xxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- References: <4A0C6AF8.5@xxxxxxxxxxxx>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
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/