q5play
    Preparing search index...

    Function curveDetail

    • 🖌 Sets the amount of straight line segments used to make a curve.

      Only takes effect in q5 WebGPU.

      Parameters

      • val: number

        curve detail level, default is 20

      Returns void

      await Canvas(200);

      curveDetail(4);

      strokeWeight(10);
      stroke(0, 1, 1);
      curve(-100, -200, -50, 0, 50, 0, 100, -200);