Package org.jwildfire.create.tina.base

Examples of org.jwildfire.create.tina.base.XForm.addVariation()


      xForm.setPostCoeff21(7.390367);

      // variation 1
      xForm.addVariation(1.43, VariationFuncList.getVariationFuncInstance("bubble", true));
      // variation 2
      xForm.addVariation(0.012, VariationFuncList.getVariationFuncInstance("linear", true));
      // variation 3
      {
        VariationFunc varFunc = VariationFuncList.getVariationFuncInstance("radial_blur", true);
        varFunc.setParameter("angle", 0.609835);
        xForm.addVariation(-0.249, varFunc);
View Full Code Here


      xForm.addVariation(0.012, VariationFuncList.getVariationFuncInstance("linear", true));
      // variation 3
      {
        VariationFunc varFunc = VariationFuncList.getVariationFuncInstance("radial_blur", true);
        varFunc.setParameter("angle", 0.609835);
        xForm.addVariation(-0.249, varFunc);
      }
      // variation 4
      xForm.addVariation(1, VariationFuncList.getVariationFuncInstance("power", true));
      // random affine transforms (uncomment to play around)
      //   XFormTransformService.scale(xForm, 1.25-Math.random()*0.5, true, true, false);
View Full Code Here

        VariationFunc varFunc = VariationFuncList.getVariationFuncInstance("radial_blur", true);
        varFunc.setParameter("angle", 0.609835);
        xForm.addVariation(-0.249, varFunc);
      }
      // variation 4
      xForm.addVariation(1, VariationFuncList.getVariationFuncInstance("power", true));
      // random affine transforms (uncomment to play around)
      //   XFormTransformService.scale(xForm, 1.25-Math.random()*0.5, true, true, false);
      //   XFormTransformService.rotate(xForm, 360.0*Math.random(), false);
      XFormTransformService.localTranslate(xForm, 1.0 - 2.0 * Math.random(), 1.0 - 2.0 * Math.random(), false);
      // random affine post transforms (uncomment to play around)
View Full Code Here

      xForm.getModifiedWeights()[0] = 2.05;
      xForm.getModifiedWeights()[1] = 1.25;
      xForm.getModifiedWeights()[2] = 0.9;

      // variation 1
      xForm.addVariation(0.008, VariationFuncList.getVariationFuncInstance("linear", true));
      // variation 2
      xForm.addVariation(10.72, VariationFuncList.getVariationFuncInstance("spherical", true));
      // random affine transforms (uncomment to play around)
      XFormTransformService.scale(xForm, 1.25 - Math.random() * 0.5, true, true, false);
      XFormTransformService.rotate(xForm, 36.0 * Math.random(), false);
View Full Code Here

      xForm.getModifiedWeights()[2] = 0.9;

      // variation 1
      xForm.addVariation(0.008, VariationFuncList.getVariationFuncInstance("linear", true));
      // variation 2
      xForm.addVariation(10.72, VariationFuncList.getVariationFuncInstance("spherical", true));
      // random affine transforms (uncomment to play around)
      XFormTransformService.scale(xForm, 1.25 - Math.random() * 0.5, true, true, false);
      XFormTransformService.rotate(xForm, 36.0 * Math.random(), false);
      XFormTransformService.localTranslate(xForm, 1.0 - 2.0 * Math.random(), 1.0 - 2.0 * Math.random(), false);
      // random affine post transforms (uncomment to play around)
View Full Code Here

      // variation 1
      {
        VariationFunc varFunc = VariationFuncList.getVariationFuncInstance("bipolar", true);
        varFunc.setParameter("shift", 0);
        xForm.addVariation(1, varFunc);
      }
      // random affine transforms (uncomment to play around)
      //   XFormTransformService.scale(xForm, 1.25-Math.random()*0.5, true, true, false);
      //    XFormTransformService.rotate(xForm, 360.0*Math.random(), false);
      //   XFormTransformService.localTranslate(xForm, 1.0-2.0*Math.random(), 1.0-2.0*Math.random(), false);
View Full Code Here

          Math.random() - 1.0);
      scl *= 0.75 + Math.random() / 4;
      XFormTransformService.scale(xForm, scl, true, true);

      xForm.setColor(Math.random());
      xForm.addVariation(Math.random() * 0.3 + 0.2, new Linear3DFunc());
      if (Math.random() > 0.1) {
        String[] fnc = FNCLST_EXPERIMENTAL;
        int fncIdx = (int) (Math.random() * fnc.length);
        xForm.addVariation(0.2 + Math.random() * 0.6, VariationFuncList
            .getVariationFuncInstance(fnc[fncIdx], true));
View Full Code Here

      xForm.setColor(Math.random());
      xForm.addVariation(Math.random() * 0.3 + 0.2, new Linear3DFunc());
      if (Math.random() > 0.1) {
        String[] fnc = FNCLST_EXPERIMENTAL;
        int fncIdx = (int) (Math.random() * fnc.length);
        xForm.addVariation(0.2 + Math.random() * 0.6, VariationFuncList
            .getVariationFuncInstance(fnc[fncIdx], true));
      }

      xForm.setWeight(Math.random() * 0.9 + 0.1);
    }
View Full Code Here

    {
      XForm xForm = new XForm();
      layer.getXForms().add(xForm);
      xForm.setWeight(wavesWeight);
      VariationFunc w2 = Math.random() > 0.89 ? createWaves2Variation(scaleX, scaleY, freqX, freqY) : createWaves2BVariation(scaleX, scaleY, freqX, freqY);
      xForm.addVariation(1 + Math.random() * 0.001, w2);

      String varLst[] = { "blur", "cos", "exp", "exponential", "lazysusan", "ngon", "sech", "sinh", "epispiral_wf", "tanh", "twintrian", "epispiral" };
      String varName = Math.random() > 0.25 ? varLst[(int) (Math.random() * varLst.length)] : VariationFuncList.getRandomVariationname();
      xForm.addVariation(blurAmount, VariationFuncList.getVariationFuncInstance(varName, true));
      xForm.setColorSymmetry(symmetry);
View Full Code Here

      VariationFunc w2 = Math.random() > 0.89 ? createWaves2Variation(scaleX, scaleY, freqX, freqY) : createWaves2BVariation(scaleX, scaleY, freqX, freqY);
      xForm.addVariation(1 + Math.random() * 0.001, w2);

      String varLst[] = { "blur", "cos", "exp", "exponential", "lazysusan", "ngon", "sech", "sinh", "epispiral_wf", "tanh", "twintrian", "epispiral" };
      String varName = Math.random() > 0.25 ? varLst[(int) (Math.random() * varLst.length)] : VariationFuncList.getRandomVariationname();
      xForm.addVariation(blurAmount, VariationFuncList.getVariationFuncInstance(varName, true));
      xForm.setColorSymmetry(symmetry);
      xForm.setColor(0.9);
      if (Math.random() > 0.5) {
        XFormTransformService.scale(xForm, 0.995, true, true);
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.