Graphics::drawCircle

Description

void Graphics::drawCircle( int16_t x , int16_t y , int16_t r )

Graphics::drawCircle draws a circle (line only!) around (x, y) with a radius of r.

Parameters

  • int16_t x: x-coordinate of the center
  • int16_t y: y-coordinate of the center
  • int16_t r: radius

Returns

none

Example

#include <Gamebuino-Meta.h>

void setup() { gb.begin(); }

void loop() { while(!gb.update()); gb.display.clear();

// draw a red circle gb.display.setColor(RED); gb.display.drawCircle(15, 15, 10); }