Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

(no subject)

New Message Reply Date view Thread view Subject view Author view

Subject: (no subject)
bpazbe@ceibo.entelnet.bo
Date: Thu Apr 22 2004 - 08:29:35 CEST

Thankyou Pierre
You was write, migrating the mothod works fine.
If some one needs to display colors (in the pov's) using one of the 31
numbers, here is the code.
This methode must be included inside Entity class in testing group for
instance.
Is it wright Pierre?
Sincerly Bernardo.

colorOfNumber: aNumber
        "Returns a ColorValue for aNumber. (There are only 31 colors)."
        | v |
        v := aNumber.
        v > 31
                ifTrue: [v := v - ((v // 31) * 31) + 1].
        ^ColorValue constantNames at: v

Hello Bernardo,

I suppose you get the model of Diana, isn't it ?
We build this model on the next version of Cormas that should be
released very
soon... (hope so !).
In this version, some methods has been moved from SpatialEntity to
Entity as it
is the case for "colorOfNumber".
You can migrate this method by yourself. If you prefere, I can also
send you my
current version but it is not yet finished.
Best regards and see you very soon...

    Pierre

New Message Reply Date view Thread view Subject view Author view
 

Back to home