Search in sources :

Example 1 with ZigguratRandomGenerator

use of org.jwildfire.create.tina.random.ZigguratRandomGenerator in project JWildfire by thargor6.

the class Boarders2Test method testTransformYbigYNeg.

@Test
public void testTransformYbigYNeg() {
    XYZPoint pt = new XYZPoint();
    pt.y = -.4;
    pt.x = .2;
    pt.z = 1;
    XYZPoint pt2 = new XYZPoint();
    pt2.y = -.4;
    pt2.x = .2;
    pt2.z = 1;
    Boarders2Func bf = new Boarders2Func();
    bf.init(null, null, new XForm(), 10);
    Flame f = new Flame();
    f.setHeight(500);
    f.setWidth(500);
    f.setName("test1");
    bf.transform(new FlameTransformationContext(new FlameRenderer(f, Prefs.getPrefs(), true, false), new ZigguratRandomGenerator(), 1), new XForm(), pt, pt2, 10);
}
Also used : XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) FlameRenderer(org.jwildfire.create.tina.render.FlameRenderer) ZigguratRandomGenerator(org.jwildfire.create.tina.random.ZigguratRandomGenerator) Flame(org.jwildfire.create.tina.base.Flame) Test(org.junit.Test)

Example 2 with ZigguratRandomGenerator

use of org.jwildfire.create.tina.random.ZigguratRandomGenerator in project JWildfire by thargor6.

the class Boarders2Test method testTransformXbigXPos.

@Test
public void testTransformXbigXPos() {
    XYZPoint pt = new XYZPoint();
    pt.y = .4;
    pt.x = .5;
    pt.z = 1;
    XYZPoint pt2 = new XYZPoint();
    pt2.y = .4;
    pt2.x = .5;
    pt2.z = 1;
    Boarders2Func bf = new Boarders2Func();
    bf.init(null, null, new XForm(), 10);
    Flame f = new Flame();
    f.setHeight(500);
    f.setWidth(500);
    f.setName("test1");
    bf.transform(new FlameTransformationContext(new FlameRenderer(f, Prefs.getPrefs(), true, false), new ZigguratRandomGenerator(), 1), new XForm(), pt, pt2, 10);
}
Also used : XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) FlameRenderer(org.jwildfire.create.tina.render.FlameRenderer) ZigguratRandomGenerator(org.jwildfire.create.tina.random.ZigguratRandomGenerator) Flame(org.jwildfire.create.tina.base.Flame) Test(org.junit.Test)

Example 3 with ZigguratRandomGenerator

use of org.jwildfire.create.tina.random.ZigguratRandomGenerator in project JWildfire by thargor6.

the class Boarders2Test method testTransformXbigXNeg.

@Test
public void testTransformXbigXNeg() {
    XYZPoint pt = new XYZPoint();
    pt.y = .4;
    pt.x = -.5;
    pt.z = 1;
    XYZPoint pt2 = new XYZPoint();
    pt2.y = .4;
    pt2.x = -.5;
    pt2.z = 1;
    Boarders2Func bf = new Boarders2Func();
    bf.setParameter("right", 0);
    bf.init(null, null, new XForm(), 10);
    Flame f = new Flame();
    f.setHeight(500);
    f.setWidth(500);
    f.setName("test1");
    bf.transform(new FlameTransformationContext(new FlameRenderer(f, Prefs.getPrefs(), true, false), new ZigguratRandomGenerator(), 1), new XForm(), pt, pt2, 10);
}
Also used : XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) FlameRenderer(org.jwildfire.create.tina.render.FlameRenderer) ZigguratRandomGenerator(org.jwildfire.create.tina.random.ZigguratRandomGenerator) Flame(org.jwildfire.create.tina.base.Flame) Test(org.junit.Test)

Example 4 with ZigguratRandomGenerator

use of org.jwildfire.create.tina.random.ZigguratRandomGenerator in project JWildfire by thargor6.

the class Boarders2Test method testTransformYbigYPos.

@Test
public void testTransformYbigYPos() {
    XYZPoint pt = new XYZPoint();
    pt.y = .4;
    pt.x = .2;
    pt.z = 1;
    XYZPoint pt2 = new XYZPoint();
    pt2.y = .4;
    pt2.x = .2;
    pt2.z = 1;
    Boarders2Func bf = new Boarders2Func();
    bf.init(null, null, new XForm(), 10);
    Flame f = new Flame();
    f.setHeight(500);
    f.setWidth(500);
    f.setName("test1");
    bf.transform(new FlameTransformationContext(new FlameRenderer(f, Prefs.getPrefs(), true, false), new ZigguratRandomGenerator(), 1), new XForm(), pt, pt2, 10);
}
Also used : XForm(org.jwildfire.create.tina.base.XForm) XYZPoint(org.jwildfire.create.tina.base.XYZPoint) FlameRenderer(org.jwildfire.create.tina.render.FlameRenderer) ZigguratRandomGenerator(org.jwildfire.create.tina.random.ZigguratRandomGenerator) Flame(org.jwildfire.create.tina.base.Flame) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)4 Flame (org.jwildfire.create.tina.base.Flame)4 XForm (org.jwildfire.create.tina.base.XForm)4 XYZPoint (org.jwildfire.create.tina.base.XYZPoint)4 ZigguratRandomGenerator (org.jwildfire.create.tina.random.ZigguratRandomGenerator)4 FlameRenderer (org.jwildfire.create.tina.render.FlameRenderer)4