예제 #1
0
        public override void SaveKeyFrames()
        {
            FKeyTime.SliceCount  = FKeyFrames.Count;
            FKeyColor.SliceCount = FKeyFrames.Count;

            FKeyFrames.Sort(delegate(TLBaseKeyFrame k0, TLBaseKeyFrame k1) { return(k0.Time.CompareTo(k1.Time)); });

            for (int i = 0; i < FKeyFrames.Count; i++)
            {
                FKeyTime.SetValue(i, FKeyFrames[i].Time);
                TLColorKeyFrame kfc = (FKeyFrames[i] as TLColorKeyFrame);
                FKeyColor.SetColor(i, kfc.RGBAColor);
            }
        }
예제 #2
0
        protected override void SetSlice(int index, Color4 value)
        {
            var dst = new RGBAColor(value.Red, value.Green, value.Blue, value.Alpha);

            FColorConfig.SetColor(index, dst);
        }
예제 #3
0
 protected override void SetSlice(int index, RGBAColor value)
 {
     FColorConfig.SetColor(index, value);
 }