Esempio 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)));
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="LabelGeometry"/> class.
 /// </summary>
 public LabelGeometry()
     : base(true)
 {
     _textSizeProperty   = RegisterMotionProperty(new FloatMotionProperty(nameof(TextSize), 11));
     _backgroundProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(Background), LvcColor.Empty));
     TransformOrigin     = new LvcPoint(0f, 0f);
 }
Esempio 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="RectangleSolidColorGeometry"/> class.
 /// </summary>
 public RectangleSolidColorGeometry() : base()
 {
     _colorProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(Color)));
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PathShape"/> class.
 /// </summary>
 public PathShape() : base()
 {
     _strokeProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(StrokeColor), Color.FromArgb(0, 255, 255, 255)));
     _stProperty     = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeThickness)));
     _fillProperty   = RegisterMotionProperty(new ColorMotionProperty(nameof(StrokeColor), Color.FromArgb(0, 255, 255, 255)));
 }
Esempio n. 6
0
 public PaintTask(SKColor color)
 {
     strokeWidthTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeWidth), 0f));
     colorTransition       = RegisterMotionProperty(
         new ColorMotionProperty(nameof(Color), new SKColor(color.Red, color.Green, color.Blue, color.Alpha)));
 }
Esempio n. 7
0
 public PaintTask()
 {
     strokeWidthTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeWidth), 0f));
     colorTransition       = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), new SKColor()));
 }
Esempio n. 8
0
 public TextPaintTask(SKColor color, float fontSize)
 {
     colorTransition    = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), color));
     textSizeTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(TextSize), fontSize));
 }
Esempio n. 9
0
 public TextPaintTask()
 {
     colorTransition    = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), new SKColor()));
     textSizeTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(TextSize), 13f));
 }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeatPathShape"/> class.
 /// </summary>
 public HeatPathShape() : base()
 {
     _fillProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(FillColor), new LvcColor(255, 255, 255, 0)));
 }
Esempio n. 11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HeatPathShape"/> class.
 /// </summary>
 public HeatPathShape() : base()
 {
     _fillProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(FillColor), LvcColor.Empty));
 }