J
J
jtag2018-04-19 17:18:23
JavaScript
jtag, 2018-04-19 17:18:23

How to draw a working button on canvas?

How to draw a working button (or button-like rectangle) on canvas without using html button. Where the cursor coordinates will be tracked, when pressed, the button is redrawn to the pressed one, when pressed again, it is redrawn back to the pressed one. Is it real at all, or is it possible to do it differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GreatRash, 2018-04-19
@GreatRash

SVG is simpler, has DOM, supports hyperlinks.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question