that does not work in this case since all objects wont have the same color
all the time.
active objects / inactive objects / selected objects will be colored
differently and the
logic for that is also in the javascript which will work as an "intelligent"
de-multiplexer assigning
right color to each object.. (the javascript i posted was a bit stripped in
order to avoid confusion :) )
On Wed, Apr 9, 2008 at 10:09 PM, Alex Drinkwater <[EMAIL PROTECTED]>
wrote:
> Why don't you just use a multiplexer and several RGB Color patches, and
> then have your JavaScript send out a number to switch between the
> colours?Might
> be an easier solution..
>
> alx
>
>
>
> On 9 Apr 2008, at 20:54, Markus Hamburger wrote:
>
> 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/the_voder%40yahoo.co.uk
>
> This email sent to [EMAIL PROTECTED]
>
>
>
--
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]