I'm doing this iOS app, where a user drags his finger over the screen of his iPhone along a circular path. During this action, the app plots little dots every other millimeter, effective creating a dotted line along the path. This works fine, as long as the user draws slowly. If he however drags his finger faster, the app is not able to draw a dot at every location on the path, leaving undesired gaps. What would be a good approach to compensate for this phenomenon? Thanks ahead
Instead of drawing dots, draw lines (line starts at the last dot, and finishes at the new dot). This way if the user draws slowly you will get the same effect, but if he draws quickly you will not have gaps.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.