nuna library · visual decision · Paint question 6 · Studio editing

Draw over, or around?

One question about what happens when new work lands on old work. The pictures are small lattices: the hatched tile was already there, the solid tile is new.

Pictures are drawn from the real Paint Studio: its exact tile, circle and diamond paths, and lattice states produced by running the Studio's own code (Import, Line, Move, Duplicate, undo). Lattice: cell (i, j) is a circle when i + j is even. Where a picture shows something that is not built, it says so. Recommendations, where given, are marked as mine. Your answer saves in this browser; Copy and Download are at the end. Nothing is sent anywhere.

Paint question 6 · Shapes, Move, Duplicate, Import

Shapes skip occupied ground; Move, Duplicate and Import overwrite. Is that the right split?

Shapes paint only empty ground, while Move, Duplicate and Import overwrite what is under them. Is that the right split?

What the files and the Studio's code say
Shapesshapes.js: "Shapes only paint empty ground; occupied cells are left as they are." A tail is steered away from a taken diamond cell, and put() refuses any piece whose cells are taken.
Move, Duplicate, Importselect.js (shiftLattice) and import.js: for every cell the new piece covers, the tile that owns that cell is deleted, then the piece is put. A tile owns two cells, so covering only its circle or only its diamond removes the whole tile. Verified by running the Studio's code (Fig. 2–3).
Erase, for comparisonRubbing only a tile's diamond lifts the whole tile (verified).
UndoEach drag is one undo (PAINT-ORGANISATION-NOTES.md). Verified here for Line, Move and Duplicate: one undo restores the exact earlier state.

a tile already there (hatched)the new piecea tile that is lostdotted: where a moved tile came from

A

Keep the split as it is

Shapes paint only empty ground. Move, Duplicate and Import overwrite, and a covered cell removes the whole tile that owns it.

Line over an existing tile, today, before
Line · before
Line over an existing tile, today, after
Line · after

Nothing is lost. The middle tile turns its tail up, away from the hatched tile's diamond. One undo removes the three new tiles (checked).

Move onto an existing tile, today, before
Move · before
Move onto an existing tile, today, after
Move · after

The whole hatched tile is lost, although only its diamond was covered: its circle cell is left empty. One undo brings it back (checked).

Duplicate onto an existing tile, today, before
Duplicate · before
Duplicate onto an existing tile, today, after
Duplicate · after

The whole hatched tile is lost, although only its circle was covered: its diamond cell is left empty. One undo brings it back (checked).

Changes downstreamNothing.
BreaksNothing.
CostTwo rules to learn: drawing never destroys, moving can. A covered half-tile takes its other half with it.
B

Everything overwrites, shapes too

Line, Rectangle and Ring would clear what they cover, the way Move and Import do.

Line over an existing tile if shapes overwrote (simulation), before
Line · before
Line over an existing tile if shapes overwrote (simulation), after
Line · after (simulation: not built)

The whole hatched tile is lost, because the middle tile's tail now lands on its diamond. If it were built as one action, one undo would restore it (checked in a simulation using the Studio's own undo).

Move onto an existing tile, unchanged under B, before
Move · before
Move onto an existing tile, unchanged under B, after
Move · after (as today)

The whole hatched tile is lost, although only its diamond was covered: its circle cell is left empty. One undo brings it back (checked).

Changes downstreamShape tools stop steering tails round existing tiles; dragging a shape across finished work erases it. Symmetry copies of a shape would overwrite too.
BreaksThe Studio test "Shapes never overwrite existing pieces" would be reversed.
Not decided / not on fileWhether a shape would still turn tails away from taken cells, or lay its tiles exactly as on an empty canvas (the simulation does the latter).
C

Everything skips or refuses

Move, Duplicate and Import would leave existing tiles alone, the way shapes do.

Line over an existing tile, unchanged under C, before
Line · before
Line over an existing tile, unchanged under C, after
Line · after (as today)

Nothing is lost. The middle tile turns its tail up, away from the hatched tile's diamond. One undo removes the three new tiles (checked).

Move onto an existing tile if it refused (simulation), before
Move · before
Move onto an existing tile if it refused (simulation), after
Move · after (simulation: not built)

Nothing is lost and nothing moves: the move is refused. There is nothing to undo.

Changes downstreamMoving, duplicating or importing onto occupied ground stops working; you would erase first, then move.
BreaksThe Studio test that expects Duplicate to overwrite ("Duplicate copies beside the selection, overwriting what is there"). Import is described as overwriting in import.js; a test for that is not listed in the notes.
Not decided / not on fileRefuse the whole move, or skip only the pieces that collide. With skip, it is not decided whether a skipped piece stays where it was or is dropped, so skip is not drawn. The refusal message would be new.
D

Something else / I need to see more

Nothing changes yet. Say what you would like to see, in the note.

No picture: this option is open.

No recommendation. Each option trades safety against speed, and the pictures are meant to show that trade.
Sources: PAINT-ORGANISATION-NOTES.md open question 6 and §4; shapes.js, select.js, import.js and the core put/owner/del functions of paint-studio.html, run headless.
Aaron's answer
Answer sheet

Aaron's answer

Fills in from the boxes above. To answer on paper, tick one box.

Q1Overwrite split: keep (A), all overwrite (B), all skip (C)ABCD