/gpui-gradient

Generate a Gradient like CSS

Primary LanguageRustMIT LicenseMIT

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

image

Development

cargo run --example hello_world