swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Heatbug related inquiries...


From: manor
Subject: Re: Heatbug related inquiries...
Date: Tue, 5 Aug 1997 08:39:21 -0700

> >   [heatDisplay setDisplayMappingM: 512 C: 0]; // turn [0,32768) -> [0,64)
> But what does the parameters in setDisplayMappingM:C: mean?
> What does the M and C mean?

>From http://www.santafe.edu/projects/swarm/swarmdocs/src/space.html :

  -setDisplayMappingM: (int) m C: (int) c
       Linear transform of states to colours for drawing.
       color = state / m + c
       If not set, assume m == 1 and c == 0.

> And speaking of "M" why didn't they call that macro M something more
> descriptive instead of M?

Roger or Nelson defined this macro and as far as I recall M is short
for message (or method) and we simply thought it would be less painful
than typing @selector(myMethod).

Manor.

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]