Пример #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)
Пример #2
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)
Пример #3
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)
Пример #4
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)
Пример #5
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)
Пример #6
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)
Пример #7
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)
Пример #8
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)
Пример #9
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)
Пример #10
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)
Пример #11
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)
Пример #12
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)
Пример #13
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)
Пример #14
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)
Пример #15
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)
Пример #16
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)
Пример #17
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)
Пример #18
0
def test0a():
    light_sim(vw=vws[6], origin=Vec(.5, .4), v=Vec(-.5, -.4).unit() / 20, mat=Material(surface, 1.5))
Пример #19
0
def test0():
    light_sim(vw=vws[6], origin=Vec(.5, .5), v=Vec(-1, -1).unit() / 20, mat=Material(surface, 1.5))
Пример #20
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)
Пример #21
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)
Пример #22
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)
Пример #23
0
def test0a():
    light_sim(vw=vws[6],
              origin=Vec(.5, .4),
              v=Vec(-.5, -.4).unit() / 20,
              mat=Material(surface, 1.5))
Пример #24
0
def test0():
    light_sim(vw=vws[6],
              origin=Vec(.5, .5),
              v=Vec(-1, -1).unit() / 20,
              mat=Material(surface, 1.5))
Пример #25
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)
Пример #26
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)