Need help for p5.js ellipse "detail"

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);
}

https://editor.p5js.org/kll/sketches/JMYKsuqUh

2 Likes

Thank you very much , I understand now :slightly_smiling_face:

1 Like