Package com.neophob.sematrix.core.fader

Examples of com.neophob.sematrix.core.fader.Crossfader


    @Test
    public void presetFadeTest() throws Exception {
      final int fps = 50;
           
      MatrixData matrix = new MatrixData(8, 8);
      IFader switchFader = new Crossfader(matrix, fps);
      assertEquals(Fader.FaderName.CROSSFADE.getId(), switchFader.getId());

      assertFalse(switchFader.isDone());
      assertFalse(switchFader.isStarted());
     
      switchFader.startFade(99, new int[55]);
      assertTrue(switchFader.isStarted());
     
      switchFader.getBuffer(new int[55], new int[55]);
      switchFader.cleanUp();
    }
View Full Code Here


    @Test
    public void visualFadeTest() throws Exception {
      final int fps = 50;
           
      MatrixData matrix = new MatrixData(8, 8);
      IFader switchFader = new Crossfader(matrix, 20, fps);
      assertEquals(Fader.FaderName.CROSSFADE.getId(), switchFader.getId());

      assertFalse(switchFader.isDone());
      assertFalse(switchFader.isStarted());
     
      switchFader.startFade(99, 1);
      assertTrue(switchFader.isStarted());
     
      switchFader.getBuffer(new int[55], new int[55]);
      switchFader.getBuffer(new int[55], new int[55]);
      assertTrue(switchFader.isDone());
      switchFader.cleanUp();
    }   
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.fader.Crossfader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.