geomerative - how to make interaction??
in
Contributed Library Questions
•
2 months ago
Hi!
This is one of my first project in processing and I have problem because I don't know how to make the ellipses moving - I mean I want them to change the size and I tried to do void draw and so on but nothing happened...Can anyone could show me how to do it?
import geomerative.*;
RFont font;
String myText = "BUMELANCI";
void setup() {
size(900, 500);
background(0);
smooth();
RG.init(this);
font = new RFont("FreeSans.ttf", 100, CENTER);
noFill();
stroke(255);
translate(width/2, height/2);
RCommand.setSegmentLength(7);
RCommand.setSegmentator(RCommand.UNIFORMLENGTH);
RGroup myGroup = font.toGroup(myText);
myGroup = myGroup.toPolygonGroup();
RPoint[] myPoints = myGroup.getPoints();
for (int i=0; i<myPoints.length; i++) {
ellipse(myPoints[i].x, myPoints[i].y, 30, 30);
}
}
This is one of my first project in processing and I have problem because I don't know how to make the ellipses moving - I mean I want them to change the size and I tried to do void draw and so on but nothing happened...Can anyone could show me how to do it?
import geomerative.*;
RFont font;
String myText = "BUMELANCI";
void setup() {
size(900, 500);
background(0);
smooth();
RG.init(this);
font = new RFont("FreeSans.ttf", 100, CENTER);
noFill();
stroke(255);
translate(width/2, height/2);
RCommand.setSegmentLength(7);
RCommand.setSegmentator(RCommand.UNIFORMLENGTH);
RGroup myGroup = font.toGroup(myText);
myGroup = myGroup.toPolygonGroup();
RPoint[] myPoints = myGroup.getPoints();
for (int i=0; i<myPoints.length; i++) {
ellipse(myPoints[i].x, myPoints[i].y, 30, 30);
}
}
1