79595172

Date: 2025-04-27 15:19:55
Score: 0.5
Natty:
Report link

First of all, thank you for trying and responding for me, I didn't understand this issue a little bit, in fact, I wanted to understand a little more solidly based on the answer you wrote at the beginning, and I went down to the math part of the work, I made calculations and figured out why the line was formed, the event is actually in a square canvas with a size of 150x150 pixels, When we draw a circle with a radius of 60 pixels, when we move to X=70, Y=50 based on the center point of the circle, if the start point of the moveTo command for the newly created circle with a radius of 10 pixels is not set correctly, a distance difference of 10 pixels relative to the center (50, 50) coordinate occurs. This creates an unwanted line of 10 pixels between the start and end points on the canvas. The reason for this is that the drawing start position of the new circle is not calculated considering the radius size. So actually our moveTo method X = X axis value of the circle + radius of the circle seriously thank you very much

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kadir