Skip to content

Make background color transparent by default and refactor fb and rast resizing#2

Open
aymanbagabas wants to merge 5 commits intotaigrr:masterfrom
aymanbagabas:bgcol
Open

Make background color transparent by default and refactor fb and rast resizing#2
aymanbagabas wants to merge 5 commits intotaigrr:masterfrom
aymanbagabas:bgcol

Conversation

@aymanbagabas
Copy link

@aymanbagabas aymanbagabas commented Feb 4, 2026

When no background color is specified, the background will be
transparent, allowing the terminal's default background to show through.
If a background color is provided, it will be used as before.

This works by updating the framebuffer to use both upper and lower
half-block characters and swapping foreground and background colors
appropriately.

This also refactors parts of the framebuffer and rasterizer to allow resizing them when the window size changes.

This is based on #1

The latest Ultraviolet update includes a simpler Screen API along with a
drawing context that helps with printing text to the screen.

This update refactors the HUD and Framebuffer rendering to use the new
Screen API and context, which simplifies the code and should be more
efficient. It also updates the light direction calculation to use the
current screen size instead of relying on stored width/height variables.
When no background color is specified, the background will be
transparent, allowing the terminal's default background to show through.
If a background color is provided, it will be used as before.

This works by updating the framebuffer to use both upper and lower
half-block characters and swapping foreground and background colors
appropriately.
@aymanbagabas aymanbagabas changed the title feat: make background color transparent by default Make background color transparent by default and refactor fb and rast resizing Feb 4, 2026
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