Skip to content

Add GFX_PEEK and GFX_FILL#326

Merged
jmmv merged 3 commits into
masterfrom
gfx-peek-fill
Jun 9, 2026
Merged

Add GFX_PEEK and GFX_FILL#326
jmmv merged 3 commits into
masterfrom
gfx-peek-fill

Conversation

@jmmv

@jmmv jmmv commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

This will be needed when implementing pixel peeking features as a way to
map rendered pixels to their original ANSI colors.
@jmmv jmmv force-pushed the gfx-peek-fill branch 3 times, most recently from 18b16ec to c8fd181 Compare June 9, 2026 01:44
jmmv added 2 commits June 8, 2026 19:35
Implement a graphics peek primitive through the console and raster
abstractions so that each backend can map native pixels back to a
COLOR value when possible.

Expose the new functionality as GFX_PEEK and return -1 for pixels
that are out of bounds or cannot be mapped exactly.
Implement a shared 4-way flood-fill algorithm in the graphics
console and expose it through a GFX_FILL command.
@jmmv jmmv force-pushed the gfx-peek-fill branch from c8fd181 to d521e15 Compare June 9, 2026 02:36
@jmmv jmmv merged commit c236444 into master Jun 9, 2026
12 checks passed
@jmmv jmmv deleted the gfx-peek-fill branch June 9, 2026 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant