mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:07:35 +00:00
LibWeb: Paint radial-gradient()
s
This almost looks too easy now :^), but it's just another way to sample the gradient line.
This commit is contained in:
parent
d1b06af307
commit
476acae04f
4 changed files with 57 additions and 3 deletions
|
@ -1271,6 +1271,14 @@ private:
|
|||
Size m_size;
|
||||
PositionValue m_position;
|
||||
Vector<LinearColorStopListElement> m_color_stop_list;
|
||||
|
||||
struct ResolvedData {
|
||||
Painting::RadialGradientData data;
|
||||
Gfx::FloatSize gradient_size;
|
||||
Gfx::FloatPoint center;
|
||||
};
|
||||
|
||||
mutable Optional<ResolvedData> m_resolved;
|
||||
};
|
||||
|
||||
class ConicGradientStyleValue final : public AbstractImageStyleValue {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue