#include <color_source.h>
|
static ColorSource | MakeColor () |
|
static ColorSource | MakeLinearGradient (Point start_point, Point end_point, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform) |
|
static ColorSource | MakeConicalGradient (Point center, Scalar radius, std::vector< Color > colors, std::vector< Scalar > stops, Point focus_center, Scalar focus_radius, Entity::TileMode tile_mode, Matrix effect_transform) |
|
static ColorSource | MakeRadialGradient (Point center, Scalar radius, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform) |
|
static ColorSource | MakeSweepGradient (Point center, Degrees start_angle, Degrees end_angle, std::vector< Color > colors, std::vector< Scalar > stops, Entity::TileMode tile_mode, Matrix effect_transform) |
|
static ColorSource | MakeImage (std::shared_ptr< Texture > texture, Entity::TileMode x_tile_mode, Entity::TileMode y_tile_mode, SamplerDescriptor sampler_descriptor, Matrix effect_transform) |
|
static ColorSource | MakeRuntimeEffect (std::shared_ptr< RuntimeStage > runtime_stage, std::shared_ptr< std::vector< uint8_t > > uniform_data, std::vector< RuntimeEffectContents::TextureInput > texture_inputs) |
|
Definition at line 99 of file color_source.h.
◆ Type
Enumerator |
---|
kColor | |
kImage | |
kLinearGradient | |
kRadialGradient | |
kConicalGradient | |
kSweepGradient | |
kRuntimeEffect | |
kScene | |
Definition at line 101 of file color_source.h.
101 {
109 kScene,
110 };
@ kColor
hue and saturation of source with luminosity of destination
◆ ColorSource()
impeller::ColorSource::ColorSource |
( |
| ) |
|
|
noexcept |
Definition at line 158 of file color_source.cc.
158: color_source_data_(std::monostate()) {}
◆ ~ColorSource()
impeller::ColorSource::~ColorSource |
( |
| ) |
|
|
default |
◆ GetContents()
Definition at line 264 of file color_source.cc.
265 {
266 return std::visit(CreateContentsVisitor{
paint}, color_source_data_);
267}
◆ GetData()
◆ GetType()
◆ MakeColor()
◆ MakeConicalGradient()
Definition at line 180 of file color_source.cc.
187 {
190 result.color_source_data_ = ConicalGradientData{
192 focus_center, focus_radius, tile_mode, effect_transform};
194}
PODArray< SkColor > colors
◆ MakeImage()
Definition at line 225 of file color_source.cc.
229 {
232 result.color_source_data_ =
234 std::move(sampler_descriptor), effect_transform};
236}
◆ MakeLinearGradient()
Definition at line 166 of file color_source.cc.
171 {
174 result.color_source_data_ =
175 LinearGradientData{start_point, end_point, std::move(
colors),
176 std::move(stops), tile_mode, effect_transform};
178}
◆ MakeRadialGradient()
Definition at line 196 of file color_source.cc.
201 {
204 result.color_source_data_ =
206 std::move(stops), tile_mode, effect_transform};
208}
◆ MakeRuntimeEffect()
Definition at line 238 of file color_source.cc.
241 {
244 result.color_source_data_ =
245 RuntimeEffectData{std::move(runtime_stage), std::move(uniform_data),
246 std::move(texture_inputs)};
248}
◆ MakeSweepGradient()
Definition at line 210 of file color_source.cc.
216 {
219 result.color_source_data_ = SweepGradientData{
221 std::move(stops), tile_mode, effect_transform};
223}
The documentation for this class was generated from the following files: