Changeset 558 for experiments/frams


Ignore:
Timestamp:
08/02/16 20:42:50 (8 years ago)
Author:
Maciej Komosinski
Message:
  • Add color to Parts
  • Tighter spiral
File:
1 edited

Legend:

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

    r557 r558  
    1 //size versus energy
    2 //real proportions
    3 
    4 function create_genotype(proculus_size, number_of_chambers)
    5 {
    6         const shift=0.75;
    7         const angle_delta=0.7;
    8         const angle_delta_delta=-0.018;
     1
     2function create_genotype(proculus_size, number_of_chambers, rgbstring)
     3{
     4        const shift=0.7;
     5        const angle_delta=0.8;
     6        const angle_delta_delta=-0.015;
    97        const growing=1.05;
    108       
     
    1311        for(var i=0;i<number_of_chambers;i++)
    1412        {
    15                 str+="p:sh=1,sx=%g,sy=%g,sz=%g\n" % size % size % size;
     13                str+="p:sh=1,sx=%g,sy=%g,sz=%g,vr=%s\n" % size % size % size % rgbstring;
    1614                if (i>0)
    1715                        str+="j:%d,%d,sh=1,dx=%g,ry=%g\n" % (i-1) % i % (size*shift) % (angle_delta+i*angle_delta_delta);
Note: See TracChangeset for help on using the changeset viewer.