Hi, I am new to p5.js;
now I can draw ellipse ; but I don’t understand the “detail” in
ellipse(x, y, w, h, detail) , how to use “detail”, I found no one example for it.
Hi, I am new to p5.js;
now I can draw ellipse ; but I don’t understand the “detail” in
ellipse(x, y, w, h, detail) , how to use “detail”, I found no one example for it.
as the
https://p5js.org/reference/#/p5/ellipse
say need WEBGL
https://p5js.org/reference/#/p5/createCanvas
function setup() {
createCanvas(400, 400, WEBGL);
frameRate(1);
}
function draw() {
background(200,200,0);
let detail = int(mouseX/20.0);
print(detail);
ellipse(0,0,100,100,detail);
}
Thank you very much , I understand now