Pudu programming language
Menu
API reference

Std.Ui.Draw.linearGradient

1 declaration

fn

linearGradient: &Std.Ui.Canvas.Canvas -> Std.Ui.Canvas.Rect -> Std.Ui.Canvas.Color -> Std.Ui.Canvas.Color -> Bool -> Result[Std.Ui.Canvas.Canvas, Std.Ui.Draw.DrawError]

The canvas with area filled from from to to: left to right when horizontal, otherwise top to bottom. The first line is exactly from and the last exactly to; each line between is blended in whole percent.

Back to Std.Ui.DrawSearch related declarations