1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
s0.initImage("/home/pln/Work/Hydra/zephyr/maze.png")
s1.initImage("/home/pln/Work/Hydra/StarryNights/img/september-13-2019-arches-cluster.jpg")
// s1.initCam(1)
src(s0)
// .modulate(noise())
.scale(0.7)
// .repeatX(2)
.scroll(0,0.13)
.out(o0)
src(o0)
.add(src(s1)
.scale(() => 0.6 + 0.2 * Math.sin(time/10))
.luma(() => 0.9 + 0.5 * Math.sin(time / 13))
.brightness(() => -0.2 + 0.2 * Math.sin(time / 20))
)
.mask(src(s0).luma(0.5).invert())
.out(o1)
src(o1)
.scale(0.9)
.out(o2)
src(o2)
.modulate(src(s0).scrollY(0.2).scale(() => 0.2 + 0.1 * Math.cos(time / 100))) // FOR 408.jpg
.modulate(src(s0).sub(src(o2).scroll(0.6)).colorama(2), 0.8)
// .scale(() => 2.5 + 0.5 * (time / 10 % 30))
.add(noise(100,0.2).luma(0.9).scale(0.5))
.out(o3)
render(o3)