Geom count of specific colour?

About advanced scenes, and the Thyme scripting language used in Algodoo.

Geom count of specific colour?

Postby Rrobba » Mon Sep 07, 2009 6:20 pm

Is there a way to find the geom count of for example 'all red objects 'or all blue objects'? If there is a way to find the geom count for objects in a certain colour, please help! ( I want it for red & blue colours)! I am a beginner at thyme, so easy steps would be appreciated.
Image
I don't suffer from insanity. I enjoy every minute of it.
User avatar
Rrobba
[Best Sig 2010]
 
Posts: 1480
Joined: Mon Aug 31, 2009 6:01 pm
Location: Gibraltar

Re: Geom count of specific colour?

Postby RA2lover » Fri Sep 11, 2009 8:59 pm

you can check the color in onX events.

{e.x(geom, laser, this, other).color == [foo, bar, baz, placeholder](color is in [R, G, B, A(transparency)] format, min = 0, max = 1)} ? {if true}:{if not true}
Jrv wrote:
TC42 wrote:Quite honestly, I didn't think anyone on 4chan has that good a use of grammar, spelling, usage, mechanics, ect.
But I've never been there, so I may be wrong.


GTFO newfgt
User avatar
RA2lover
 
Posts: 607
Joined: Mon Aug 31, 2009 8:43 pm
Location: Brazil


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest