Intrinsically-Sublime / WLED-2D-gaps.json-Generator

Generate 2d-gaps.json files for WLED 2D matrices
https://intrinsically-sublime.github.io/WLED-2D-gaps.json-Generator/
0 stars 0 forks source link

drag to select multiple pixels #1

Open pupik12 opened 3 months ago

pupik12 commented 3 months ago

I was recently working on a project based on a 17x53 matrix. One thing that might make this tool a bit easier to use for larger gapfiles is being able to enable/disable multiple pixels at a time by clicking and dragging, instead of having to select each pixel one by one.

Thanks!

Intrinsically-Sublime commented 3 months ago

I completely agree. But I have no idea how to do it. Right now it uses on-click event to make the changes. For drawing while dragging I think it would need to be rewritten to track the mouse position, mapping it to the elements and running the logic while the mouse button is down.

This may be easy to do but again I have no idea how and from a quick search I could not figure out how. Currently the script uses HTML/CSS with javascript to make it interactive. If you know how to do this or can find a resource that teaches how we may be able to make it happen.