Draw off the stage, on a work area that grows to hold it
A brush stroke was cut at the stage's edge, because its mask was the
stage's size, and anything drawn off the stage was invisible, because the
raster and the canvas were. Flash draws on a pasteboard and lets the
passepartout do the hiding; so does this now.
The picture is rasterised over what is drawn AND on screen, not over the
whole work area: each frame takes the bounds of its ops, cuts them to the
pane, and draws that. A frame with nothing off the stage is the stage, and
costs what it did; a background many stages wide costs the pane it is
seen through. Measured on a 320x200 stage at 200%, 12 shapes: 1.39 ms a
frame before, 1.46 after; with a 5000 px background, 1.65.
- a raster may have an :origin, the stage point its first pixel is, and
ops stay in stage pixels
- off the stage the raster has coverage, and what nothing drew on is
left transparent, so the work area shows through
- the work area grows to everything drawn and a stage round it, in steps
of 64, and never shrinks under the view; it is margins on the stage
box, so it scrolls left and up as well as right and down
- a brush stroke's mask is what is on screen
- onion ghosts and tracing reach off the stage the same way
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ddef5c6bfd
commit
9af21c5d10
9 changed files with 316 additions and 98 deletions
|
|
@ -848,8 +848,15 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
padding: 14px;
|
||||
}
|
||||
|
||||
/* Under the stage, wherever the work area round it reaches. */
|
||||
.stage-target {
|
||||
flex: 0 0 auto;
|
||||
position: absolute;
|
||||
top: 100%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
white-space: nowrap;
|
||||
line-height: normal;
|
||||
pointer-events: none;
|
||||
margin-top: -1px;
|
||||
padding: 3px 9px 4px;
|
||||
border: 1px solid var(--line);
|
||||
|
|
@ -871,14 +878,13 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
outline: 1px solid rgba(0, 0, 0, .45);
|
||||
}
|
||||
|
||||
.stage { display: block; background: var(--stage); }
|
||||
/* Placed by the player over whatever part of the work area is drawn on and on
|
||||
screen, which may be more than the stage or less. */
|
||||
.stage { position: absolute; }
|
||||
|
||||
.paint-overlay { position: absolute; inset: 0; touch-action: none; }
|
||||
.stage-overlay-wrap {
|
||||
position: absolute;
|
||||
left: -100%; top: -100%;
|
||||
width: 300%; height: 300%;
|
||||
}
|
||||
/* Over the whole work area, placed by the stage. */
|
||||
.stage-overlay-wrap { position: absolute; }
|
||||
.stage-shade {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
|
|
@ -886,7 +892,7 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
outline: 1px solid #aaa;
|
||||
}
|
||||
/* The footage traced over: a reference above the picture, never part of it. */
|
||||
.tracing { position: absolute; inset: 0; pointer-events: none; }
|
||||
.tracing { position: absolute; pointer-events: none; }
|
||||
|
||||
/* Where a drag out of the pool would land. Dashed and unfilled, so it reads as
|
||||
"not there yet" over whatever is already drawn. */
|
||||
|
|
@ -1809,7 +1815,7 @@ button.share-button:hover, button.share-button.on { filter: brightness(1.1); }
|
|||
.stage-wrap { flex: 0 0 auto; }
|
||||
|
||||
|
||||
.onion-skin { position: absolute; inset: 0; pointer-events: none; image-rendering: pixelated; }
|
||||
.onion-skin { position: absolute; pointer-events: none; image-rendering: pixelated; }
|
||||
|
||||
|
||||
/* Expanded automation lanes expose editable keyframe dots. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue