protected override EffectTypeModuleData CreateInstanceForClone() { var gradientLevelList = Colors.Select(glp => new GradientLevelPair(new ColorGradient(glp.ColorGradient), new Curve(glp.Curve))).ToList(); PinWheelData result = new PinWheelData { Colors = gradientLevelList, ColorType = ColorType, SpeedCurve = new Curve(SpeedCurve), PinWheel3D = PinWheel3D, Orientation = Orientation, Arms = Arms, YOffsetCurve = new Curve(YOffsetCurve), XOffsetCurve = new Curve(XOffsetCurve), CenterHubCurve = new Curve(CenterHubCurve), TwistCurve = new Curve(TwistCurve), ThicknessCurve = new Curve(ThicknessCurve), Rotation = Rotation, SizeCurve = new Curve(SizeCurve), LevelCurve = new Curve(LevelCurve), MovementType = MovementType, PinWheelBladeType = PinWheelBladeType, OffsetPercentage = OffsetPercentage }; return(result); }
protected override EffectTypeModuleData CreateInstanceForClone() { var gradientLevelList = Colors.Select(glp => new GradientLevelPair(new ColorGradient(glp.ColorGradient), new Curve(glp.Curve))).ToList(); PinWheelData result = new PinWheelData { Colors = gradientLevelList, ColorType = ColorType, Speed = Speed, PinWheel3D = PinWheel3D, Orientation = Orientation, Arms = Arms, YOffset = YOffset, XOffset = XOffset, CenterStart = CenterStart, Twist = Twist, Thickness = Thickness, Rotation = Rotation, Size = Size, LevelCurve = new Curve(LevelCurve) }; return(result); }
public PinWheel() { _data = new PinWheelData(); EnableTargetPositioning(true, true); UpdateAttributes(); }
protected override EffectTypeModuleData CreateInstanceForClone() { var gradientLevelList = Colors.Select(glp => new GradientLevelPair(new ColorGradient(glp.ColorGradient), new Curve(glp.Curve))).ToList(); PinWheelData result = new PinWheelData { Colors = gradientLevelList, ColorType = ColorType, Speed = Speed, PinWheel3D = PinWheel3D, Orientation = Orientation, Arms = Arms, YOffset = YOffset, XOffset = XOffset, CenterStart = CenterStart, Twist = Twist, Thickness = Thickness, Rotation = Rotation, Size = Size, LevelCurve = new Curve(LevelCurve) }; return result; }
public PinWheel() { _data = new PinWheelData(); }