/* * Copyright (c) 2023, MacDue * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Web::Painting { using ColorStopList = Vector; struct ColorStopData { ColorStopList list; Optional repeat_length; }; struct LinearGradientData { float gradient_angle; ColorStopData color_stops; }; struct ConicGradientData { float start_angle; ColorStopData color_stops; }; struct RadialGradientData { ColorStopData color_stops; }; }