neoneye / ARC-Interactive

Enjoy puzzle-solving directly in your browser.
https://neoneye.github.io/arc/
MIT License
18 stars 2 forks source link

Editor: Sparse selection, for manipulating objects #55

Open neoneye opened 7 months ago

neoneye commented 7 months ago

Problem

I seek high quality data. In my opinion, the recorded history of what the user is doing, is hard to make sense of and low quality data.

Currently the editor can only do rectangular selection.

However objects are sometimes not a rectangle, but comes in all kinds of shapes, such as: diagonal stripes, all green pixels, dashed lines, two color objects.

It could be interesting seeing how this impacts the recorded interactions. Will it be easier for another human to make sense of what is going on when replaying the history file?

Solution

Proof of concept with selecting pixels in a sparse way.

Proof of concept with storing the sparse selection in the history json files.

Regarding flip x-axis. What happens if the object is horizontally asymmetric? Does it require a z-index?

Regarding rotate-ccw. What happens if the object is non-square? Does it require a z-index?

It seems like a z-index layer system is needed.

Concern: This complicates the UI a lot. Will humans actually bother to carefully indicate what is an object.