[GH-ISSUE #393] Add opacity to box #97

Closed
opened 2026-03-02 23:44:32 +03:00 by kerem · 2 comments
Owner

Originally created by @dested on GitHub (Dec 7, 2025).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/393

This is just a wishlist thing, but it would be really nice for Box to have an opacity that effects everything inside of it. I tracked things down to drawBox in buffer.zig but it gets dicey after that. Any advice on how this could, or even IF it could be implemented?

Originally created by @dested on GitHub (Dec 7, 2025). Original GitHub issue: https://github.com/anomalyco/opentui/issues/393 This is just a wishlist thing, but it would be really nice for Box to have an opacity that effects everything inside of it. I tracked things down to drawBox in buffer.zig but it gets dicey after that. Any advice on how this could, or even IF it could be implemented?
kerem 2026-03-02 23:44:32 +03:00
Author
Owner

@kommander commented on GitHub (Dec 10, 2025):

It definitely can be implemented. It is not trivial though, the renderable tree would have to support alpha channel inheritance. Stacking such alpha areas makes it even worse. It could work in rendering like the scissors do to define push and stack areas that influence alpha, or tinting kind of.

<!-- gh-comment-id:3635011607 --> @kommander commented on GitHub (Dec 10, 2025): It definitely can be implemented. It is not trivial though, the renderable tree would have to support alpha channel inheritance. Stacking such alpha areas makes it even worse. It could work in rendering like the scissors do to define push and stack areas that influence alpha, or tinting kind of.
Author
Owner

@dested commented on GitHub (Dec 11, 2025):

I don't mean to spam but I am absolutely floored. Thank you team ❤️

<!-- gh-comment-id:3642703474 --> @dested commented on GitHub (Dec 11, 2025): I don't mean to spam but I am absolutely floored. Thank you team ❤️
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#97
No description provided.