Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/huacnlee/gpui-gradient
Generate a Gradient like CSS
https://github.com/huacnlee/gpui-gradient
gpui gradient
Last synced: 6 days ago
JSON representation
Generate a Gradient like CSS
- Host: GitHub
- URL: https://github.com/huacnlee/gpui-gradient
- Owner: huacnlee
- License: mit
- Created: 2024-09-06T04:04:16.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-10-23T11:15:45.000Z (2 months ago)
- Last Synced: 2024-12-27T15:35:53.457Z (7 days ago)
- Topics: gpui, gradient
- Language: Rust
- Homepage:
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GradientElement for GPUI
This is a simple Element to render a gradient for GPUI.
The core implementation is based drawing the gradient into a bitmap img, and then use `cx.paint_image()` to render the image to the GPUI.
## Ranbow Gradient
## Development
```bash
cargo run --example hello_world
```