Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 4DGL-uLCD-SE PinDetect mbed
Circle.cpp
00001 #include "Circle.h" 00002 00003 Circle::Circle() { 00004 00005 } 00006 00007 void Circle::init(int x, int y, uLCD_4DGL *uLCD) { 00008 initSprite(x, y, uLCD); 00009 setRadius(2); 00010 } 00011 00012 void Circle::setRadius(int r) { 00013 _radius = r; 00014 } 00015 00016 void Circle::drawCircle(int baseX, int baseY, int color) { 00017 int newX = baseX + _x; 00018 int newY = baseY + _y; 00019 _uLCDptr->filled_circle(newX, newY, _radius, color); 00020 }
Generated on Sun Jul 17 2022 07:39:55 by
1.7.2