Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 public PinWheel()
 {
     _data = new PinWheelData();
     EnableTargetPositioning(true, true);
     UpdateAttributes();
 }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 public PinWheel()
 {
     _data = new PinWheelData();
 }
Esempio n. 6
0
 public PinWheel()
 {
     _data = new PinWheelData();
 }