void Graphics::drawRect( int16_t x , int16_t y , int16_t w , int16_t h )
Graphics::drawRect draws a rectangle (outline only!) from (x, y) with a certain width and height.
none
#include <Gamebuino-Meta.h>
void setup() {
gb.begin();
}
void loop() {
while(!gb.update());
gb.display.clear();
// draw a yellow frame around the entire screen
gb.display.setColor(YELLOW);
gb.display.drawRect(0, 0, gb.display.width(), gb.display.height());
}