LibWeb: Implemented shadows support for CanvasRenderingContext2D

This commit is contained in:
uysalibov 2024-10-18 01:56:58 +03:00 committed by Andrew Kaster
commit 34f7bf979d
Notes: github-actions[bot] 2024-10-23 18:44:55 +00:00
5 changed files with 152 additions and 3 deletions

View file

@ -80,6 +80,9 @@ public:
Gfx::AffineTransform transform;
FillOrStrokeStyle fill_style { Gfx::Color::Black };
FillOrStrokeStyle stroke_style { Gfx::Color::Black };
float shadow_offset_x { 0.0f };
float shadow_offset_y { 0.0f };
Gfx::Color shadow_color { Gfx::Color::Transparent };
float line_width { 1 };
Vector<double> dash_list;
bool image_smoothing_enabled { true };