K
K
kirillleogky2020-01-30 20:53:40
JavaScript
kirillleogky, 2020-01-30 20:53:40

How to implement the stroke functionality?

I'm trying to make an implementation of stroke like on the piskel
site My project is simple-piskel.surge.sh/app/index.html

How to make exactly this kind of line drawing implementation?
Can you tell me some material on the topic or give a couple of tips on how best to do this, since my implementation is bad ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twobomb, 2020-01-30
@twobomb

It turned out clumsy, well, the first thing that came to mind.
https://jsfiddle.net/twobomb/uyf27q0k/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question