arduino-libraries / ArduinoGraphics

35 stars 21 forks source link

ellipse and circle implementation #12

Closed OmarAli3 closed 2 months ago

OmarAli3 commented 4 years ago

@per1234 Can you please tell me what the exact output for the above seketch is needed to be ?

per1234 commented 4 years ago

@OmarAli3 I would expect something that looks approximately like this:

XX******XXX
X*OOOOOO*XX
X*OOOOOO*XX
*OOOOOOOO*X
*OOOOOOOO*X
*OOOOOOOO*X
*OOOOOOOO*X
X*OOOOOO*XX
X*OOOOOO*XX
XX******XXX
XXXXXXXXXXX

I might not have the shape of the circle quite right, but your code seems to do that well enough already.

What I expect is a circle that:

OmarAli3 commented 4 years ago

After working on the problem :

So now I have two choices:

@per1234 , Do You suggest something?

per1234 commented 4 years ago

I guess that the "pixel" position problem will be fixed with real graphic diplay devices.

As far as I know, this library is currently only used by the Arduino_MKRRGB library (though I'm sure it will be used for many other applications soon). The Arduino MKR RGB shield is a 12x7 LED matrix, so it is actually less of a "real graphic display" in some ways than the Serial Monitor.

Do You suggest something?

Because of the use with the MKR RGB Shield, I do think it's important to avoid this extra pixel. That will be very noticeable when it's an extra LED lit up. I have confirmed the issue also occurs with using the Arduino_MKRRGB library and the Arduino MKR RGB shield.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

CLAassistant commented 3 years ago

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

leonardocavagnis commented 2 months ago

Fixed by #30