Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 577 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 577 Bytes

GradientElement for GPUI

🌞🌞 We not need this, GPUI has it own gradient implementation.

https://github.com/zed-industries/zed/blob/main/crates/gpui/examples/gradient.rs

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

image

Development

cargo run --example hello_world