q5play
    Preparing search index...

    Function textSize

    • 📘 Sets or gets the current font size. If no argument is provided, returns the current font size.

      Parameters

      • Optionalsize: number

        size of the font in pixels

      Returns number | void

      current font size when no argument is provided

      q5.draw = function () {
      background(0.8);

      textSize(abs(mouseX));
      text('A', -90, 90);
      };