public void ApplyToPoint(DPOW.Reader.Point destPoint, float t)
        {
            Ciloci.Flee.ExpressionContext c = new Ciloci.Flee.ExpressionContext();
            c.Imports.AddType(typeof(Math));
            c.Variables["t"] = t;
            if (x != string.Empty)
            {
                destPoint.X = (float)c.CompileGeneric <double>(x).Evaluate();
            }
            if (y != string.Empty)
            {
                destPoint.Y = (float)c.CompileGeneric <double>(y).Evaluate();
            }
            if (z != string.Empty)
            {
                destPoint.Z = (float)c.CompileGeneric <double>(z).Evaluate();
            }
            if (u != string.Empty)
            {
                destPoint.U = (float)c.CompileGeneric <double>(u).Evaluate();
            }
            if (v != string.Empty)
            {
                destPoint.V = (float)c.CompileGeneric <double>(v).Evaluate();
            }

            Color newColor = destPoint.Color;

            gradient.ApplyToColor(ref newColor, t);
            destPoint.Color = newColor;
        }
        public void ApplyToImage(DPOW.Reader.Image destImage, float t)
        {
            destImage.Visible    = visible;
            destImage.isGradient = gradient;
            destImage.TextureId  = texid;

            center.ApplyToPoint(destImage.Position, t);
            for (int i = 0; i < points.Length; i++)
            {
                points[i].ApplyToPoint(destImage.Points[i], t);
            }

            Color newColor = destImage.Color;

            color.ApplyToColor(ref newColor, t);
            destImage.Color = newColor;
        }