예제 #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);
        }
예제 #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);
        }
예제 #3
0
파일: PinWheel.cs 프로젝트: Aurbo99/vixen
 public PinWheel()
 {
     _data = new PinWheelData();
     EnableTargetPositioning(true, true);
     UpdateAttributes();
 }
예제 #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;
 }
예제 #5
0
파일: PinWheel.cs 프로젝트: jaredb7/vixen
 public PinWheel()
 {
     _data = new PinWheelData();
 }
예제 #6
0
파일: PinWheel.cs 프로젝트: starry-au/vixen
 public PinWheel()
 {
     _data = new PinWheelData();
 }