Changeset 558 for experiments/frams/foraminifera/data/scripts
- Timestamp:
- 08/02/16 20:42:50 (8 years ago)
- 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 2 function 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; 9 7 const growing=1.05; 10 8 … … 13 11 for(var i=0;i<number_of_chambers;i++) 14 12 { 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; 16 14 if (i>0) 17 15 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.