-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added DrawCircle and DrawLine #24
Conversation
Thanks! Much better. Only a few comments above and we are ready to merge. |
@@ -27,4 +28,70 @@ int DrawText(Canvas *c, const Font &font, | |||
} | |||
return x - start_x; | |||
} | |||
|
|||
|
|||
void DrawCircle(Canvas *c, int32_t x0, int32_t y0, int32_t radius, uint8_t red, uint8_t green, uint8_t blue){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At the end of this method header, add a space before the curly brace
...blue) {
The indentation looks like it is 4 spaces, but this code usually uses 2 spaces. Can you look at that as well ? |
api updated for color
I did the updates |
Only two little remarks. Will merge this evening (California time). |
ok, I have some code for an analog clock and a plasma. I did not add it to your main demo code because it is a big file and i prefered to split it. I committed in on a repo on my github, you can have a look if you want. https://github.com/srandoux/ledmatrix |
Added DrawCircle and DrawLine contributed by @srandoux
So the clock and plasma example sound interesting (I didn't compile them, but had a quick look). If you want, you could integrate these as another demo in the demo-main.cc. This file is getting a bit big, and maybe I am separating these at some point. But having everything for demos in one file is probably as well useful for people that want to get started with copy/paste programming. |
Hi, ok I'll do that. maybe not this week but soon. I need to work on antialiased version of the line though. |
I did the changes you mentioned.
Regards,
-Sébastien