is it possible to create an array containing colors in javascript?
i've made a small stepsequencer using an array of booleans (which work) and
now
i would like to assign different colors to the "steps" represented by
3D-objects.
my attempts looks something like this for coloring the first 3 "steps" in
one color and the following 3 "steps" in another color:
function (__virtual color[6]) main (__virtual colorinput1, __virtual
colorinput2)
{
var colors = new Array();
for(i=0;i<3;i++)
{
colors.push(colorinput1);
}
for(i=0;i<3;i++)
{
colors.push(colorinput2);
}
var result = new Object();
result.color = colors;
return result;
}
(the same technique worked for booleans but i guess there is maybe some
type-conversion problems NScolorspace<->virtual ?
btw, while experimenting with this Quartz is crashing on me all the time so
i filled out some bug-reports :)
--
markus hamburger
www.uprough.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]