Changeset 579
- Timestamp:
- 08/18/16 12:15:55 (8 years ago)
- Location:
- experiments/frams/foraminifera/data/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/foraminifera/data/scripts/foraminifera.expdef
r570 r579 24 24 25 25 global colors; 26 global retColors;27 26 global curColor; 28 27 global max_chamber_volume; … … 99 98 ExpProperties.chamber_proculus_diplo = micronsToFrams(10); 100 99 colors = ["1.0,1.0,0.0","1.0,0.5,0.0"]; 101 retColors = ["1.0,1.0,1.0", "1.0,1.0,0.0"]; 102 curColor = retColors[0]; 100 curColor = colors[0]; 103 101 curRadius = ExpProperties.zone1_range; 104 102 … … 328 326 var radius = getPloidRadius(ploid); 329 327 var geno = create_genotype(radius, chambernum, colors[ploid], 1); 330 curColor = retColors[ploid];328 curColor = colors[ploid]; 331 329 var cr = Populations[0].add(geno); 332 330 cr.name = "Initial creature" + species + "_" + iter; … … 442 440 if ((chamber_num+1) <= max_chamber_volume[cr.data->lifeparams->gen].size) 443 441 { 444 curColor = retColors[cr.data->lifeparams->gen];442 curColor = colors[cr.data->lifeparams->gen]; 445 443 var ploid = cr.data->lifeparams->gen; 446 444 var geno = create_genotype(getPloidRadius(ploid), chamber_num+1, colors[ploid], lastchambergrowth); … … 546 544 } 547 545 548 cr.moveAbs(new_x, new_y, 0);546 cr.moveAbs(new_x, new_y, -cr.getPart(cr.numparts-1).sx); 549 547 550 548 //are there any nutrients in zone 1 or 2? … … 654 652 new_rad = getZoneRange(cr,1)-new_rad; 655 653 654 curColor = colors[cr.data->lifeparams->gen]; 656 655 addReticulopodia(cr,new_rad); 657 656 } … … 1079 1078 group:Energy 1080 1079 1081 1082 1080 property: 1083 1081 id:crossprob -
experiments/frams/foraminifera/data/scripts/foraminifera.inc
r575 r579 274 274 function createOffspring(geno, energy, parent_genes, parent_lifeparams, parentsuids) 275 275 { 276 curColor = retColors[1-parent_lifeparams->gen];276 curColor = colors[1-parent_lifeparams->gen]; 277 277 var cr = Populations[0].add(geno); 278 278 cr.energy0 = energy;
Note: See TracChangeset
for help on using the changeset viewer.