Changeset 575


Ignore:
Timestamp:
08/09/16 01:09:38 (8 years ago)
Author:
Maciej Komosinski
Message:

When the last chamber is growing, make it gray and add extra information in its "i" field

File:
1 edited

Legend:

Unmodified
Added
Removed
  • experiments/frams/foraminifera/data/scripts/foraminifera.inc

    r573 r575  
    1212        {
    1313                var effectivesize=size; //'effectivesize' is introduced only to consider the last chamber
    14                 if (i==number_of_chambers-1)
     14                if (i==number_of_chambers-1) //last chamber
    1515                {
    1616                        effectivesize*=lastchambergrowth;
    1717                        size=size*(1.35-0.35*lastchambergrowth); //last iteration: 'size' is only used for shifting (dx). The last chamber emerges at the surface of the previous one
     18                        if (lastchambergrowth<1)
     19                                rgbstring="0.8,0.8,0.8,i=\"growing=%g\"" % lastchambergrowth; //when the last chamber is growing, make it gray and add extra information in its "i" field
    1820                }
    1921                str += "p:sh=1,sx=%g,sy=%g,sz=%g,rz=3.14159265358979,vr=%s\n" % effectivesize % effectivesize % effectivesize % rgbstring;
Note: See TracChangeset for help on using the changeset viewer.