add: Rect

This commit is contained in:
2022-03-04 00:14:27 +01:00
parent 7fbad9a90d
commit 10c8a1fbf7
3 changed files with 67 additions and 19 deletions

View File

@@ -43,6 +43,19 @@ int main()
target.DrawCircle(center, 210);
target.DrawCircle(center, 220);
target.DrawCircle(center, 230);
target.DrawCircle(center, 231);
target.DrawRectFilled({100, 100}, {202, 202});
target.DrawCircle({151, 151}, 50, frame::WHITE);
target.DrawCircle({151, 151}, 40, frame::WHITE);
target.DrawCircle({151, 151}, 30, frame::WHITE);
target.DrawCircle({151, 151}, 20, frame::WHITE);
target.DrawCircle({151, 151}, 10, frame::WHITE);
target.DrawCircle({151, 151}, 1, frame::WHITE);
target.DrawRect({10, (int)display.getSize().height - 110}, {110, (int)display.getSize().height - 10}, 5);
display.Display(target.getImage());
std::this_thread::sleep_for(10s);