Exemple #1
0
def test3():
    light_sim(vw=vws[6],
              max_run_time=100,
              origin=Vec(0, 1.2),
              v=Vec(0, -1).unit() / 20,
              mat=Material(disk, 1.6),
              density=50,
              perp_width=2,
              parallel_width=.06)
Exemple #2
0
def test1():
    light_sim(vw=vws[11],
              max_run_time=100,
              spawn_time=100,
              origin=Vec(0, 1.9),
              v=Vec(0, -1).unit() / 20,
              mat=Material(triangle, 1.3),
              density=30,
              perp_width=.09,
              parallel_width=.09)
Exemple #3
0
def test7():
    light_sim(vw=vws[10],
              max_run_time=200,
              spawn_time=75,
              origin=Vec(-2.6, 0),
              v=Vec(1, 0).unit() / 20,
              mat=Material(sine, 1.7),
              density=50,
              perp_width=.05,
              parallel_width=.06)
Exemple #4
0
def test5():
    light_sim(vw=vws[6],
              max_run_time=300,
              spawn_time=1,
              origin=Vec(.05, 1.1),
              v=Vec(-1.3, -1).unit() / 10,
              mat=Material(ring, 2.3),
              density=200,
              perp_width=.03,
              parallel_width=.06)
Exemple #5
0
def test4():
    light_sim(vw=vws[6],
              max_run_time=100,
              origin=Vec(-1, 0),
              v=Vec(1, 0).unit() / 20,
              mat=Material(lens, 1.5),
              density=50,
              perp_width=.75,
              parallel_width=.06,
              segregation=True)
Exemple #6
0
def test2a():
    light_sim(vw=vws[11],
              max_run_time=200,
              origin=Vec(-.5, 1.0),
              v=Vec(0, -1).unit() / 40,
              mat=Material(triangle, 1.5),
              density=50,
              perp_width=.05,
              parallel_width=.05,
              gif=True,
              gifres=2)
Exemple #7
0
def test8():
    light_sim(vw=vws[6],
              max_run_time=200,
              spawn_time=75,
              origin=Vec(-1, -.1),
              v=Vec(1, .3).unit() / 20,
              mat=Material(squares, 1.3),
              density=500,
              perp_width=.05,
              parallel_width=.05,
              segregation=False)
Exemple #8
0
def test6():
    light_sim(vw=vws[6],
              max_run_time=70,
              spawn_time=8,
              origin=Vec(-1, .5),
              v=Vec(1, 0).unit() / 20,
              mat=Material(div_lens, 1.5),
              density=2000,
              perp_width=.01,
              parallel_width=.06,
              segregation=False)
Exemple #9
0
def test5a():
    light_sim(vw=vws[6],
              max_run_time=500,
              spawn_time=1,
              origin=Vec(-.97, .5),
              v=Vec(0, -1).unit() / 20,
              mat=Material(ring2, 2.3),
              density=200,
              perp_width=.02,
              parallel_width=.06,
              gif=False)
Exemple #10
0
def test9():
    light_sim(vw=vws[6],
              max_run_time=350,
              spawn_time=100,
              origin=Vec(-1, 0),
              v=Vec(1, .3).unit() / 20,
              mat=Material(circles, 1.3),
              density=1000,
              perp_width=.05,
              parallel_width=.05,
              segregation=True,
              color_add=False)
Exemple #11
0
def test3a():
    light_sim(vw=vws[6],
              max_run_time=130,
              spawn_time=5,
              origin=Vec(0, 1.2),
              v=Vec(0, -1) / 20,
              color_add=False,
              mat=Material(disk, 2.0),
              density=500,
              perp_width=2,
              parallel_width=.06,
              segregation=False)
Exemple #12
0
def test0a():
    light_sim(vw=vws[6],
              origin=Vec(.5, .4),
              v=Vec(-.5, -.4).unit() / 20,
              mat=Material(surface, 1.5))
Exemple #13
0
def test0():
    light_sim(vw=vws[6],
              origin=Vec(.5, .5),
              v=Vec(-1, -1).unit() / 20,
              mat=Material(surface, 1.5))