draw_circle_color - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

NOTOC {{-}} This function is part of the function set Drawing shapes

Notation

Description

Draw a circle using a gradient of the colors col1 and col2 at (x,y) with radius r. If outline is true the circle is not filled in.

Parameters

  • (x,y): indicate the coordinates for the center of the circle.
  • r: indicates the radius around the center for the circle.
  • col1: the color at the center of the circle.
  • col2: the color at the outer edges of the circle.
  • outline: indicates whether to only draw the outline (true) or fill the circle (false).

Return Values

none

Example Call

draw_circle_color(100, 100, 16, c_red, c_blue, false);
⚠️ **GitHub.com Fallback** ⚠️