P
P
parcnfalb2018-11-16 16:20:57
Canvas
parcnfalb, 2018-11-16 16:20:57

How to draw on canvas on click without spaces?

Those. we draw a circle in the context when clicking or when mouse move results in gaps when moving the mouse quickly, how is it solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-11-16
@parcnfalb

When moving the mouse, remember the coordinates of the cursor, between the previous and current coordinates, draw lines consisting of circles. Calculate the coordinates of the circles using the Bresenham algorithm, for example. Somehow so .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question