q5play
    Preparing search index...

    Function pushStyles

    • 💅 Saves the current drawing style settings.

      This includes the fill, stroke, stroke weight, tint, image mode, rect mode, ellipse mode, text size, text align, text baseline, and shadow settings.

      Returns void

      await Canvas(200);
      background(0.8);

      pushStyles();
      fill('blue');
      circle(-50, -50, 80);

      popStyles();
      circle(50, 50, 80);