Ejemplo n.º 1
0
 public SolidColorPaintTask()
 {
     colorTransition       = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), new SKColor()));
     strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
Ejemplo n.º 2
0
 public SolidColorPaintTask(SKColor color)
     : base(color)
 {
     strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
Ejemplo n.º 3
0
 public SolidColorPaintTask(SKColor color)
 {
     colorTransition = RegisterMotionProperty(
         new ColorMotionProperty(nameof(Color), new SKColor(color.Red, color.Green, color.Blue, color.Alpha)));
     strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SolidColorPaintTask"/> class.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <param name="strokeWidth">Width of the stroke.</param>
 public SolidColorPaintTask(SKColor color, float strokeWidth)
     : base(color)
 {
     strokeWidthTransition  = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeThickness), strokeWidth));
     _strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     _pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     _shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SolidColorPaintTask"/> class.
 /// </summary>
 public SolidColorPaintTask()
 {
     _strokeMiterTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeMiter), 0f));
     _pathEffectTransition  = RegisterMotionProperty(new PathEffectMotionProperty(nameof(PathEffect)));
     _shaderTransition      = RegisterMotionProperty(new ShaderMotionProperty(nameof(Shader)));
 }