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))); }
/// <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); }
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))); }
/// <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))); }
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))); }
public PaintTask() { strokeWidthTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(StrokeWidth), 0f)); colorTransition = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), new SKColor())); }
public TextPaintTask(SKColor color, float fontSize) { colorTransition = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), color)); textSizeTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(TextSize), fontSize)); }
public TextPaintTask() { colorTransition = RegisterMotionProperty(new ColorMotionProperty(nameof(Color), new SKColor())); textSizeTransition = RegisterMotionProperty(new FloatMotionProperty(nameof(TextSize), 13f)); }
/// <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))); }
/// <summary> /// Initializes a new instance of the <see cref="HeatPathShape"/> class. /// </summary> public HeatPathShape() : base() { _fillProperty = RegisterMotionProperty(new ColorMotionProperty(nameof(FillColor), LvcColor.Empty)); }