Skip to content

huacnlee/gpui-gradient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate a Gradient like CSS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages