diff options
| author | user <user@clank> | 2026-08-20 23:56:37 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-20 23:56:37 +0200 |
| commit | c7a45c4ff8825ff564fa7852a08e9bbac2c2b7c8 (patch) | |
| tree | 3002b2720e48d1b26775654f17ff7de7d88c27d1 /src/config.c | |
| parent | slosh: M10c, the memory -- floats survive being written down (diff) | |
| download | slosh-c7a45c4ff8825ff564fa7852a08e9bbac2c2b7c8.tar.gz slosh-c7a45c4ff8825ff564fa7852a08e9bbac2c2b7c8.tar.xz slosh-c7a45c4ff8825ff564fa7852a08e9bbac2c2b7c8.zip | |
slosh: the scrolled edge fade earns its name
Four rows deep at 60 a row instead of three at 45: the edge row is nearly
gone (#0e0e0e from white) and the melt reads as "there is more this way"
rather than as a rendering artefact. The quarter-viewport cap, the
(above > 0) gate and everything else about the derivation stand; a config
that writes its own scrolled chain is untouched, as ever.
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/config.c b/src/config.c index f1361ef..ccbbc3a 100644 --- a/src/config.c +++ b/src/config.c @@ -739,13 +739,15 @@ static bool derived_pass(config_t *c, shader_t *sh, const char *kind, * each edge, so `(above > 0)` snaps the top fade off at the top of the * buffer: an edge you cannot scroll past renders solid, which is the whole * message. (Reaching the bottom ends the state itself, same statement.) Up to - * three rows a side and never more than a quarter of the viewport each, - * because two three-row fades on a six-row viewport is every row faded and - * nothing said. They ride after the wash so they dim washed cells rather - * than racing it. */ -#define SCROLL_FADE_TOP "(above > 0) * max(0, (min(3, rows / 4) - y) * 45)" + * four rows a side and never more than a quarter of the viewport each, + * because two deep fades on a short viewport is every row faded and nothing + * said. They ride after the wash so they dim washed cells rather than racing + * it. 60 a row, so the edge row is nearly gone (240) and the melt is a + * statement rather than a suspicion -- it shipped at three rows of 45 and + * read as a rendering artefact more than as "there is more this way". */ +#define SCROLL_FADE_TOP "(above > 0) * max(0, (min(4, rows / 4) - y) * 60)" #define SCROLL_FADE_BOTTOM \ - "(below > 0) * max(0, (y - rows + min(3, rows / 4) + 1) * 45)" + "(below > 0) * max(0, (y - rows + min(4, rows / 4) + 1) * 60)" static void apply_scrolled(config_t *c, bool declared) { if (declared) return; |
