mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
LibWeb+LibGfx: Implement Canvas2D filters
This commit is contained in:
parent
9fd1223992
commit
a6ef6550f3
Notes:
github-actions[bot]
2024-12-18 17:55:41 +00:00
Author: https://github.com/ananas-dev
Commit: a6ef6550f3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2876
Reviewed-by: https://github.com/kalenikaliaksandr
Reviewed-by: https://github.com/shlyakpavel
10 changed files with 136 additions and 31 deletions
|
@ -11,6 +11,7 @@
|
|||
#include <AK/Vector.h>
|
||||
#include <LibGfx/AffineTransform.h>
|
||||
#include <LibGfx/Color.h>
|
||||
#include <LibGfx/Filter.h>
|
||||
#include <LibGfx/Font/Font.h>
|
||||
#include <LibGfx/PaintStyle.h>
|
||||
#include <LibGfx/Path.h>
|
||||
|
@ -84,6 +85,8 @@ public:
|
|||
float shadow_offset_y { 0.0f };
|
||||
float shadow_blur { 0.0f };
|
||||
Gfx::Color shadow_color { Gfx::Color::Transparent };
|
||||
Vector<Gfx::Filter> filters;
|
||||
Optional<String> filters_string;
|
||||
float line_width { 1 };
|
||||
Bindings::CanvasLineCap line_cap { Bindings::CanvasLineCap::Butt };
|
||||
Bindings::CanvasLineJoin line_join { Bindings::CanvasLineJoin::Miter };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue