Hello!
First I want to thank everybody who helped me on my last question, I really appreciated it! I’m still working on my class project and I’m stuck at where it asks me to make the circles look “fuzzy” or “furry” like the Tribbles in Star TREK.
I tried the filter option but since there is a lag on it, I imagine it could be very inconvenient? I also tried playing with the “opaqueness” but then the time movement I set up becomes more unnoticeable.
I reached out to my professor and he suggested the below:
"There are basically infinite ways you could do this, but one way I tell folks is to draw six lines similar to this:
\ | /
\|/
/|\
/ | \
And draw an ellipse on top of that, that will at least give you some little stubbles coming out of the ellipse to simulate fuzziness."
But I thought there might be a better way… Can anybody help me?
Tribble[] tribble = new Tribble[200];
color tColor = color( random(255),random(255),random(255) );
void setup() {
size(400, 400);
background(255);
frameRate(30);
for (int i = 0; i < tribble.length; i++) {
tribble[i] = new Tribble(random(0, 400), random(0, 400));
}
}
void draw() {
background(255);
tribble[(int)random(tribble.length)].excited();
for (int i=0; i<tribble.length; i++) {
tribble[i].display();
}
}
class Tribble {
float xPos, yPos;
int start;
float time;
int offset;
boolean wakeup;
Tribble(float x, float y) {
xPos = x;
yPos = y;
}
//excited
void excited() {
time = (frameCount/60) % 9;
if (time >= 4 && time < 6) xPos += random(-1, 1);
}
//tribbles
void display() {
ellipseMode(CENTER);
noStroke();
fill(tColor,50);
ellipse(xPos, yPos, 30, 30);
}
}