[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[sc-dev] SuperCollider to NodeBox
I've posted a SuperCollider-to-NodeBox bridge at http://www.polishook.org/code/NB.zip. The bridge, which basically wraps the NodeBox API in SuperCollider code, includes all required items except for NodeBox (http://nodebox.net). An example:
n = NB("hello_world", 400, 300);
n.background(0, 1, 0);
n.fill(0.5, 0, 0.91425.rand);
n.text("Hello, world!", rrand(20, 380), rrand(20, 280));
n.fill(1, 0, 0);
n.text("Hello, world", 50, 50);
In Leopard, rendering commands can be sent directly from SuperCollider to NodeBox. Pre-Leopard seems to require rendering manually in NodeBox.
I'll be making a few more revisions and uploading it as a Quark in the near future. In the meantime if there are comments, send them, perhaps off-list.
Many thanks to Thor M. and Andreas V. for comments -