We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I've tried changing the size code but then the composition was not centered so I tried changing the number of what i is greater than but it did not work. I'm just lost right now
PFont fFont;
void setup() {
size(800,800);
background(255, 255, 255);
translate(400,400);
fFont = createFont("BodoniOrnamentsITCTT", 48);
textFont(fFont, 290);
for(int i=0;i<800;i=i+100) {
for(int j=0;j<800;j=j+100){
for(int k=0;k<6; k=k+1){
fill(80,214,179,50);
pushMatrix();
textAlign(CENTER);
rotate(PI*k/3);
text("*", i, j);
popMatrix();
}
}
}
}
Answers
You were correct; that is the way to do it. If I understand what you are trying to do (and I'm not sure) it may not have been working because of the way you were using rotate.
hi, so when I use this code it tells me that "cols" can not be resolved
wait just kidding translate(i40, j40); cant be resolved to a variable
that's because the code isn't formatted for the forum... it's taken the * between i and 40 and j and 40 as markup. see how those are italicised?
jeremy's code reposted:
(spaces would also stop that, and make things more readable)
ahhh thank you
Sorry about that formatting blip. I indented the code block, but it looks like having it after a bullet list messed something up. Should have refreshed the page after posting to confirm.
@Franz654 --To understand why your original rotate-then-translate error was giving you crazy results, see the Processing Tutorial 2D Transformations -- in particular look at the "Rotation" section starting with "Hey, what happened?" ....