Noob Question
in
Programming Questions
•
2 years ago
Hi all,
can i ask a noob question?
Are the following code the same?
void draw(){
pushMatrix();
translate(10,-5);
rotate(radians(15));
translate(-10,5);
rect(0,0,10,10);
popMatrix();
}
void draw(){
translate(10,-5);
rotate(radians(15));
translate(-10,5);
rect(0,0,10,10);
}
and if they are the same, can i ask which order is processing doing?
is it:
1. translate(-10,5); 2. rotate(radians(15)); 3. translate(10,-5); 4. rect(0,0,10,10);
can i ask a noob question?
Are the following code the same?
void draw(){
pushMatrix();
translate(10,-5);
rotate(radians(15));
translate(-10,5);
rect(0,0,10,10);
popMatrix();
}
void draw(){
translate(10,-5);
rotate(radians(15));
translate(-10,5);
rect(0,0,10,10);
}
and if they are the same, can i ask which order is processing doing?
is it:
1. translate(-10,5); 2. rotate(radians(15)); 3. translate(10,-5); 4. rect(0,0,10,10);
1