Example #1
0
		public ColorKey AddColorKey(float t, Color color)
		{
			ColorKey k = new ColorKey(t, color);
			Colors.Add(k);
			Colors.Sort();
			return k;
		}
Example #2
0
        public ColorKey AddColorKey(float t, Color color)
        {
            ColorKey k = new ColorKey(t, color);

            Colors.Add(k);
            Colors.Sort();
            return(k);
        }
Example #3
0
    static public void PatchColorGradient(ColorParameter c1, Gradient c2)
    {
        GradientColorKey[] ck = new GradientColorKey[c1.Colors.Count];
        GradientAlphaKey[] ak = new GradientAlphaKey[c1.Colors.Count];

        for (int i = 0; i < c1.Colors.Count; i++)
        {
            Xft.ColorKey k = c1.Colors[i];

            ck[i].color = k.Color;
            ck[i].time  = k.t;

            ak[i].alpha = k.Color.a;
            ak[i].time  = k.t;
        }

        c2.SetKeys(ck, ak);
    }