Skip to content

feat: initial compositing implementation #471

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
May 16, 2025
Merged

feat: initial compositing implementation #471

merged 11 commits into from
May 16, 2025

Conversation

aymanbagabas
Copy link
Member

This adds a new Canvas type that can be used to compose multiple layers together. Each layer can have its own content, position, and z-index. The Canvas type can render the layers to a string.

Screen.Recording.2025-02-11.at.5.11.10.PM.mov
Screenshot 2025-02-11 at 4 49 04 PM

Copy link
Member

@andreynering andreynering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks so cool! 👏

@aymanbagabas aymanbagabas force-pushed the v2-compositing branch 2 times, most recently from 70ff8ec to 63a77d8 Compare February 18, 2025 20:06
This adds a new `Canvas` type that can be used to compose multiple layers
together. Each layer can have its own content, position, and z-index. The
`Canvas` type can render the layers to a string.
@caarlos0
Copy link
Member

this works pretty well, loved to play with it!

@meowgorithm
Copy link
Member

I've pulled the Bubble Tea example as it records view state to the model, which we should be handling natively in Bubble Tea. Otherwise, from a Lip Gloss perspective, I believe this is good to go.

@meowgorithm meowgorithm merged commit 2c4751e into v2-exp May 16, 2025
13 checks passed
@meowgorithm meowgorithm deleted the v2-compositing branch May 16, 2025 18:02
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.

5 participants