1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00:00

LibWeb: Paint conic-gradient()s

This is a first pass at painting conic-gradient()s, I've yet to try to
optimize this much, but I feel like you could do better than atan2
in a loop.
This commit is contained in:
MacDue 2022-10-30 19:28:00 +01:00 committed by Linus Groh
parent 49497044de
commit fdcc73d4b1
4 changed files with 129 additions and 66 deletions

View file

@ -1233,6 +1233,13 @@ private:
Angle m_from_angle;
PositionValue m_position;
Vector<AngularColorStopListElement> m_color_stop_list;
struct ResolvedData {
Painting::ConicGradientData data;
Gfx::FloatPoint position;
};
mutable Optional<ResolvedData> m_resolved;
};
class LinearGradientStyleValue final : public AbstractImageStyleValue {