Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change particles to make them look more distinct for people with colorblindness #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions virus/Particle.pde
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Particle{
int laserT = -9999;
int birthFrame;
double AGE_GROW_SPEED = 0.08;
int outlineThickness = 2;
Genome UGO_genome;

public Particle(double[] tcoor, int ttype, int b){
Expand Down Expand Up @@ -117,10 +118,13 @@ class Particle{
double ageScale = Math.min(1.0,(frameCount-birthFrame)*AGE_GROW_SPEED);
scale((float)(s/BIG_FACTOR*ageScale));
noStroke();
strokeWeight(outlineThickness);
if(type == 0){
fill(255,0,0);
stroke(0, 0, 0);
}else if(type == 1){
fill(WASTE_COLOR);
stroke(0, 0, 0);
}else if(type == 2){
fill(0);
}
Expand Down
4 changes: 2 additions & 2 deletions virus/virus.pde
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Cell UGOcell;
int lastEditTimeStamp = 0;
color handColor = color(0,128,0);
color TELOMERE_COLOR = color(0,0,0);
color WASTE_COLOR = color(100,65,0);
color WASTE_COLOR = color(255,255,255);
int MAX_CODON_COUNT = 20; // If a cell were to have more codons in its DNA than this number if it were to absorb a cirus particle, it won't absorb it.

double SPEED_LOW = 0.01;
Expand Down Expand Up @@ -708,4 +708,4 @@ int[] stringToInfo(String str){
}
}
return info;
}
}