示例#1
0
 protected override void ApplyProperties(EffectProperties properties)
 {
     base.ApplyProperties(properties);
     _backgroundColor = properties.GetColorEffect(BackgroundEffectName,Ordering);
     _pulseColor = properties.GetColorEffect(PulseEffectName, Ordering);
     _width = properties.GetFloat(WidthName);
 }
 protected override void ApplyProperties(EffectProperties properties)
 {
     IEasing easing = properties.GetEasing(PropertyDefinition.Easing.Name);
     Tween = new Tween(easing)
                 {
                     StartTime = 0,
                     EndTime = Duration,
                     StartValue = Ordering.GetMin(),
                     EndValue = Ordering.GetMax()
                 };
 }
示例#3
0
 protected override void ApplyProperties(EffectProperties properties)
 {
     base.ApplyProperties(properties);
     _startColorEffect = properties.GetColorEffect(StartEffectName,Ordering);
     _endColorEffect = properties.GetColorEffect(EndEffectName,Ordering);
 }
        private static Pattern GetBasePattern()
        {
            EffectProperties effectProperties = new EffectProperties();
            effectProperties[PropertyDefinition.Duration.Name] = 1.0;
            effectProperties[PropertyDefinition.RepeatCount.Name] = 1;
            effectProperties[PropertyDefinition.Easing.Name] = Easings.Linear;
            effectProperties[PropertyDefinition.Ordering.Name] = SpatialOrderings.GetOrdering(SpatialOrderingTypes.Expand);
            effectProperties[PropertyDefinition.RepeatMethod.Name] = RepeatMethods.Reverse;
            effectProperties[FixedEffect.ColorEffectName] = new FixedColor(ColorUtil.GetTransparent());

            return new Pattern
                {
                    EffectName = FixedEffect.EffectName,
                    EffectProperties = effectProperties,
                    Groups = new List<string>{"All"}
                };
        }
 protected override void ApplyProperties(EffectProperties properties)
 {
     _colorEffect = properties.GetColorEffect(ColorEffectName, Ordering);
 }
 protected abstract void ApplyProperties(EffectProperties properties);