Exemplo n.º 1
0
        //public EffectPiece ScaleBackground(float x, float y, float time = 0.5f, bool sync = false)
        //{
        //    Queue<NewImageEffect> effects = new Queue<NewImageEffect>();
        //    effects.Enqueue(NewEffectBuilder.ScaleToByDepth(-1, new Vector3(x, y, 1), time));
        //    return new EffectPiece(id++, effects);
        //}

        public EffectPiece ScaleBackground(float scale, float time = 0, bool sync = false)
        {
            Queue <NewImageEffect> effects = new Queue <NewImageEffect>();

            effects.Enqueue(NewEffectBuilder.ScaleToByDepth(-1, new Vector3(scale, scale, 1), time));
            return(new EffectPiece(id++, effects));
        }
Exemplo n.º 2
0
        //public EffectPiece ScaleSprite(int depth, float x, float y, float time = 0f, bool sync = false)
        //{
        //    Queue<NewImageEffect> effects = new Queue<NewImageEffect>();
        //    effects.Enqueue(NewEffectBuilder.ScaleToByDepth(depth, new Vector3(x, y, 1), time));
        //    return new EffectPiece(id++, effects);
        //}

        public EffectPiece ScaleSprite(int depth, float scale, float time = 0f, bool sync = false)
        {
            Queue <NewImageEffect> effects = new Queue <NewImageEffect>();

            effects.Enqueue(NewEffectBuilder.ScaleToByDepth(depth, new Vector3(scale, scale, 1), time));
            return(new EffectPiece(id++, effects));
        }