I have a question about arc().
I’m not good at English, so I’m using machine translation.
The behavior below seems intuitive.
// P5.js
function setup(){
createCanvas(200, 400);
}
function draw(){
translate(0, height/2);
background(0, 0, 0);
noStroke();
ellipseMode(RADIUS);
fill(255, 255, 0); // yellow
arc(0, -100, 200, 100, radians(-30), radians(30));
fill(255, 0, 255); // magenta
arc(0, 100, 200, 200, radians(-30), radians(30));
}
The behavior below seems counterintuitive to me.
// Processing3.5.4
size(200, 400);
translate(0, height/2);
background(0, 0, 0);
noStroke();
ellipseMode(RADIUS);
fill(255, 255, 0); // yellow
arc(0, -100, 200, 100, radians(-30), radians(30));
fill(255, 0, 255); // magenta
arc(0, 100, 200, 200, radians(-30), radians(30));
Is this a Processing spec?
What’s the difference between the two?
Is there a way to deal with it? I’d like to specify an intuitive angle for this program.
Thank you for reading this.