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
s0.initImage("/home/pln/Work/Hydra/Nuages/IMG_20240426_191322.jpg")
s1.initImage("/home/pln/Work/Hydra/Nuages/IMG_20240426_194213.jpg")
src(s0)
.brightness(-0.2)
.saturate(1.12)
.contrast(1.4)
.out(o0)
src(o0)
.hue(0.02)
.add(
src(o0)
.scroll(0,-0.235)
.mask(shape(4).scroll(0,-0.05).scale(2,4)) // Bottom half
.blend(o0,0.5) // Subtle blend
.luma(() => 0.8 + 0.125 * Math.sin(time / 2))
, // Lumiere du jour qui pulse
() => 0.2 + 0.5 * Math.cos(time / (24 * 12)) // Jour / Nuit
)
.out(o1)
// Neige
noise(180,0.03)
// Qui tombe
.scrollY(() => -time * 0.01).thresh(0.91)
// Top half
.mask(shape(4).invert().scroll(0,-0.11).scale(2,4))
.out(o2)
src(o1)
.saturate(1.3)
.add(o2)
// Nuages
.add(
src(s1).brightness(0.2)
// En mouvement
.scale(() => 1.5 + 0.3 * Math.sin(time / 22))
.mask(shape(4).contrast(0.8).scroll(0,-0.11).scale(2.1,4)) // Bottom half
.rotate(0.03) // Legerement penché
.luma(() => 1 + 0.2 * Math.cos(time / 13)) // Only the brightest
// .blend(o1, () => 0.5 + 0.3 * Math.sin(time / 19)) // Subtle blend
, 0.3)
.contrast(1.2)
.brightness(-0.05)
.out(o3)
render(o3)
// a.hide()