mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:07:35 +00:00
LibWeb: Implement the canvas gradients
This gets: - CanvasRenderingContext2D.createLinearGradient() - CanvasRenderingContext2D.createConicGradient() - CanvasRenderingContext2D.createRadialGradient() Actually working as fill styles for paths and rectangles :^) Getting them working for strokes is left as an exercise is left as an exercise for the reader.
This commit is contained in:
parent
24cb57ac88
commit
27a3e11f02
4 changed files with 26 additions and 38 deletions
|
@ -53,7 +53,7 @@ public:
|
|||
|
||||
private:
|
||||
FillOrStrokeVariant m_fill_or_stoke_style;
|
||||
RefPtr<Gfx::PaintStyle> m_color_fill_style { nullptr };
|
||||
RefPtr<Gfx::PaintStyle> m_color_paint_style { nullptr };
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/canvas.html#drawing-state
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue