Package com.neophob.sematrix.core.color

Examples of com.neophob.sematrix.core.color.ColorSet


      boolean result = f.mkdir();
      LOG.log(Level.INFO, "Result: "+result);
    }
    for (Visual v: allVisuals) {
      String prefix = "screenshot"+File.separator+frames+"-"+ofs+"-";
      ColorSet cs = v.getColorSet();     
      saveImage(v, prefix+"gen1"+suffix, cs.convertToColorSetImage(v.getGenerator1().internalBuffer));
      saveImage(v, prefix+"gen2"+suffix, cs.convertToColorSetImage(v.getGenerator2().internalBuffer));

      saveImage(v, prefix+"fx1"+suffix, cs.convertToColorSetImage(v.getEffect1Buffer()));
      saveImage(v, prefix+"fx2"+suffix, cs.convertToColorSetImage(v.getEffect2Buffer()));

      saveImage(v, prefix+"mix"+suffix, v.getMixerBuffer());
      ofs++;
    }
  }
View Full Code Here


    }
      ph = new ApplicationConfigurationHelper(new Properties());
      fileUtils = new FileUtilsJunit();
      sound = new SoundDummy();
      resize = new PixelResize();
      col = new ColorSet("test", new int[]{1,2,3});
     
      for (int x=1; x<maxResolution; x++) {
        for (int y=1; y<maxResolution; y++) {
          testWithResolution(x,y);
          testWithResolution(y,x);
View Full Code Here

        case 'C':           
            if (v!=null) {
              String colorSetName = v.getColorSet().getName();
               
                boolean takeNext = false;
                ColorSet nextColorSet = col.getColorSets().get(0);
                for (ColorSet cs : col.getColorSets()) {
                  if (takeNext) {
                    nextColorSet = cs;
                    break;
                  }
                 
                  if (cs.getName().equals(colorSetName)) {
                    takeNext = true;
                  }
                }
                v.setColorSet(nextColorSet.getName());
                validKey = true;
            }
            break;

        //change current generator 1
View Full Code Here

      pce.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (Effect eff: pce.getAllEffects()) {
        eff.getBuffer(v.getBuffer());
        eff.update();
View Full Code Here

      pcr.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (IResize rsz: pcr.getAllResizers()) {
        BufferedImage bi = rsz.createImage(v.getBuffer(), matrix.getBufferXSize(), matrix.getBufferYSize());
        int[] b1 = rsz.getBuffer(bi, matrix.getDeviceXSize(), matrix.getDeviceYSize());
View Full Code Here

     
      FileUtils fileUtils = new FileUtils();
      Collector.getInstance().init(fileUtils, ph);

      Mixer m = new PassThruMixer();
      ColorSet c = new ColorSet("JUNIT", new int[]{123233,232323,100,200});

      LayoutModel lmDefault = new LayoutModel(1, 1, 0, 0, 0);
      LayoutModel lmBox1 = new LayoutModel(2, 1, 0, 0, 0);
      LayoutModel lmBox2 = new LayoutModel(2, 1, 32, 32, 0);
      LayoutModel lmBox4 = new LayoutModel(2, 2, 32, 32, 0);
View Full Code Here

    if (rootDir == null) {
      //if unit test is run in eclipse
      rootDir = "."+File.separatorChar;
    }
      ph = new ApplicationConfigurationHelper(new Properties());
      col = new ColorSet("test", new int[]{1,2,3});
     
      for (int x=1; x<maxResolution; x++) {
        for (int y=1; y<maxResolution; y++) {
          testWithResolution(x,y);
          testWithResolution(y,x);
View Full Code Here

      pcm.initAll();

      Generator g = new PassThruGen(matrix);
      Effect e = new PassThru(matrix);
      Mixer m = new Checkbox(matrix);
      ColorSet c = new ColorSet("test", new int[]{1,2,3});
      Visual v = new Visual(g,e,m,c);     

      for (Mixer mix: pcm.getAllMixer()) {
        //System.out.println(mix);
        mix.getBuffer(v);
View Full Code Here

TOP

Related Classes of com.neophob.sematrix.core.color.ColorSet

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.