mirror of
https://github.com/donlucasx/xscapes.git
synced 2026-10-20 08:43:32 +02:00
Two days of his design round: I drew, he ruled from rendered options.
THE CAT. It asks with its ears ("Pricked ears"), finishes with its chin up,
and walks up its own ladder -- 12x7 -> 16x9 -> 24x14, the middle rung the
Faithful Scale-Up with its nose removed, the top rung "Ruffed sit", drawn.
Before this the ask and the finish were the WORKING body: measured over 1,200
frames a pose, bodies only, 97% of a still of either was also a still of the
cat simply working. Now 0%, asserted, with Worried as the positive control.
The crab finishes "settled on the sand" with one pincer shutting every 7 s.
crabDone was DEAD ART -- it raised a claw by a single source row and the row
OR ate it, so all six half-rows were crabWork's. The finish cue has been the
eye glyph alone since it was written.
Its near eye rotates through four faces, picked on the RISING EDGE of an ask
and held. Random carries no information, which is the only reason a second
mark on that channel is legal at all.
THE OR-TRAP, which he caught from both sides. CatBody row 11 is a muzzle gap
row 10 covers, so the cat has never had a mouth on screen. A 16x9 draft grew a
nose; doubling for the top rung grew a mouth. Two general fixes were measured
and rejected -- half-row doubling flattens nine tapered rows, and filling every
covered interior gap also eats the notch between the ears.
FIXED: the cat's mid-stride drew a 16-cell side view inside the 12-cell box and
put the eyes 6 and 10 cells off the head, 4,037 times across 31 sessions ·
hyFloor ignored the horizon and allowed water above it in 81 configurations ·
the unmirrored layout paced the companion toward the frame edge · emit accepted
any word as a kind and confirmed delivery of nothing · XSCAPES_COMPANION was
double-prefixed and had never worked · the cat's parent body had no cleared rim ·
the tail could not scale, so a doubled cat arrived bald · DrawnHeadCol ignored
the mirror, which the crab's symmetric eye cells had hidden.
NOT FIXED, and both put back after measuring worse than the bug: a fractional
tide depth churns 53.62% every frame against ~64% on crossings alone; making
the star separation strict took touching pairs from 10 to 12. Carded with the
numbers. An average that passes is not a ceiling that holds.
Studies, none of them shipping behaviour: -starfall (the star arriving, 1,805
swept arrivals), -catalts (the design round), -decisions (what is still open).
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01P7YSpTVSL4ws8rgG1X4mtt
114 lines
4.6 KiB
Go
114 lines
4.6 KiB
Go
package scape
|
|
|
|
import (
|
|
"math"
|
|
|
|
"github.com/donlucasx/xscapes/internal/envx"
|
|
)
|
|
|
|
// Tide is HIS idea, 2026-09-09, and SHIPPED ON at his word the next day: "turn
|
|
// XSCAPES_TIDE=1 ON by default." He asked for it as "the tide could be moving
|
|
// in and out of the land, instead of moving towards the left of the screen.
|
|
// Like a real tide", ran it for an evening and kept it -- "new tide seems to
|
|
// work well ... I like it".
|
|
//
|
|
// He is right about both halves, and both are measured.
|
|
//
|
|
// WHAT MOVES SIDEWAYS: the waterline is a sine in x whose phase advances with
|
|
// time -- reach*sin(fx*0.11 + tt*0.8) -- so the shape of the coast slides
|
|
// across the frame. Water does not do that. A wave travels toward the shore;
|
|
// the shoreline itself runs up the sand and back.
|
|
//
|
|
// WHAT DOES NOT MOVE AT ALL: the sea never comes up the beach. The waterline's
|
|
// base row is `sy := c.H - beach`, which is a function of the canvas height and
|
|
// the writing band and NOTHING else. Rendered and averaged over eighty phases,
|
|
// the mean waterline sits at row 18.75 at level 0.00 and row 18.75 at level
|
|
// 1.00, moving 0.09 of a row across the entire activity range. All that grows
|
|
// with the work is the wiggle: three rows of swing at rest, four flat out.
|
|
//
|
|
// So this does two things. The sheet runs in and out TOGETHER, one phase for
|
|
// every column, with the coast's own shape holding nearly still underneath it.
|
|
// And how far up the beach the water sits becomes the activity channel, which
|
|
// is the fix the sea needs anyway: a position, countable at a glance, and it
|
|
// currently carries nothing.
|
|
//
|
|
// ⚠ THE DIRECTION IS FORCED, and it is worth knowing before looking. There is
|
|
// almost no room to come further IN -- the writing band is right below the
|
|
// waterline and `sy` is already clamped against it -- and a lot of room to go
|
|
// OUT, eight rows at his geometry. So the busy position is where the water
|
|
// already sits, and REST pulls it back up the frame toward the horizon. Idle
|
|
// reads as low tide with a wide beach, and that is the honest way round.
|
|
//
|
|
// XSCAPES_TIDE=0 puts the old waterline back -- a fixed row with a sine sliding
|
|
// across it -- which is the picture every frame before 2026-09-10 was reviewed
|
|
// against, and what the A/B in notes/searange and notes/drift compares to.
|
|
var Tide = true
|
|
|
|
func init() {
|
|
switch envx.Lookup("TIDE") {
|
|
case "0", "off", "no":
|
|
Tide = false
|
|
}
|
|
}
|
|
|
|
// TideRange is how many rows, at scale 1, the water withdraws when the agent
|
|
// goes quiet. Clamped afterwards by the same guards that keep the waterline
|
|
// off the horizon and out of the writing.
|
|
var TideRange = 5.0
|
|
|
|
// TideEase is the time constant the water takes to reach where the activity
|
|
// puts it. Seconds.
|
|
var TideEase = 3.0
|
|
|
|
// tideTarget is how far the waterline should have withdrawn at this level.
|
|
func tideTarget(level, scale float64) float64 {
|
|
if !Tide {
|
|
return 0
|
|
}
|
|
return (1 - clamp01(level)) * TideRange * scale
|
|
}
|
|
|
|
// hyFloor is the highest row the water may withdraw to, so a long quiet stretch
|
|
// cannot pull the shoreline up into the sky.
|
|
//
|
|
// ⚠ IT HAS TO KNOW WHERE THE SKY IS. It was a function of sy alone -- the row
|
|
// the beach starts at -- and TideRange is five rows, so at a short window the
|
|
// arithmetic permitted a waterline ABOVE THE HORIZON: measured at 40x12, four
|
|
// rows above it. The scene has a sea in the sky and nothing in the layout could
|
|
// notice, because the only guard was against the WRITING band below.
|
|
//
|
|
// So the horizon is a hard floor and the tide gives up its range rather than
|
|
// its meaning. One row of clearance, because a waterline exactly on the horizon
|
|
// has no sea left to draw. Fixed 2026-09-12 at his "address it".
|
|
func hyFloor(sy, hy int) float64 {
|
|
f := float64(sy) - TideRange - 1
|
|
if sky := float64(hy) + 1; f < sky {
|
|
return sky
|
|
}
|
|
return f
|
|
}
|
|
|
|
// tideEdge is the waterline under Tide: one phase for every column, so the
|
|
// whole sheet advances and retreats together, over a coast whose own shape
|
|
// drifts thirteen times slower than the shipped one and so reads as a place
|
|
// rather than as a pattern going past.
|
|
func tideEdge(w, sy int, floor, at, tt float64, act Activity, scale float64) []float64 {
|
|
wash := (0.7 + act.Level*0.9) * scale * math.Sin(tt*0.5)
|
|
base := float64(sy) - at
|
|
if base < floor {
|
|
base = floor
|
|
}
|
|
e := make([]float64, w)
|
|
for x := 0; x < w; x++ {
|
|
fx := float64(x)
|
|
// No time in the x terms at all. Any of it, however slow, is the coast
|
|
// itself sliding across the frame -- which is the thing he asked to be
|
|
// rid of, and 0.06 was still several radians a minute. The shoreline is
|
|
// a PLACE; all the motion belongs to the wash.
|
|
e[x] = base + wash +
|
|
0.60*scale*math.Sin(fx*0.11) +
|
|
0.35*scale*math.Sin(fx*0.047)
|
|
}
|
|
return e
|
|
}
|