Commit 177238a0 by PLN (Algolia)

feat: Muguet

parent 3e90a4f7
......@@ -12,21 +12,15 @@ src(o0)
.out(o1)
src(o1)
.blend(src(o3).scale(1.0099), 0.6)
.brightness(-0.05)
.out(o2)
src(o2)
.modulate(src(o1).scale(0.9), () => 0.3 + 0.3 * Math.sin(time / 13))
.scale(() => 3.5 + 1.5 * Math.cos(time / 18))
.modulate(src(o1).scale(0.9), () => 0.3 + 0.3 * Math.sin(time / 33))
.scale(() => 3.5 + 1.5 * Math.cos(time / 28))
.brightness(-0.063)
.contrast(1.57)
.hue(0.5)
.out(o3)
render(o3)
a.hide()
s0.initCam()
s0.initCam(1)
src(s0).out(o0)
src(s0)
.rotate(-0.065)
.scale(1.7,0.65)
// .contrast(1.8)
.out(o0)
src(o0)
// .scale(1.2,1.2)
.scroll(0,0.04)
// .contrast(1.9)
.mult(src(s0).thresh(0.5)
.scroll(
() => -0.08 + 0.1 * Math.sin(time/13),
() => -0.04 + 0.048 * Math.sin(time/2.3)
)
.scale(1.82))
.hue(() => 10 + (time/20) % 30)
.brightness(() => -0.5 + 0.48 * (1 - a.fft[3]))
.saturate(() => 2 * a. a.fft[0])
.out(o1)
src(o1)
// .diff(src(o1).scroll(-0.1,0).scale(0.52).mult(o1),0.6)
.modulate(voronoi(() => 50 + 30 * Math.sin(time / 20),0.001)
.rotate(() => 0.9 + 2 * Math.sin(time/3))
)
.blend(src(o1).modulatePixelate(osc(10,0)), 0.5)
.brightness(-0.2)
.saturate(() => 1.2 - 1.4 * a.fft[0])
.out(o2)
a.setSmooth(0.8)
a.show()
render()
render(o1)
......@@ -4,7 +4,7 @@
src(o0)
.saturate(1.01)
.scale(.995)
.scale(0.995)
.color(1.01,1.01,1.01)
.hue(.01)
.modulateHue(src(o1).hue(.3).posterize(-1).contrast(.7),2)
......
......@@ -3,12 +3,12 @@ s0.initImage("file:///home/pln/Work/Hydra/StarryNights/img/ShoemakerLevy9.png");
src(s0).out(o0)
shape(93)
.modulateRotate(noise(0.26))
.modulateRotate(noise(0.26,0.1))
.blend(noise(0.6,0.001),0.36)
.blend(noise().mask(shape(30).scale(0.95)))
.blend(voronoi(90,0.8).mask(shape(30).scale(0.85)),0.1)
.add(voronoi(30,0.01).mask(shape(30).scale(0.75)),0.4)
.blend(voronoi(0.2,0.01).mask(shape(30).scale(0.55)),0.2)
.blend(noise(10,0.01).mask(shape(30).scale(0.95)))
.blend(voronoi(90,0.008).mask(shape(30).scale(0.85)),0.1)
.add(voronoi(30,0.001).mask(shape(30).scale(0.75)),0.4)
.blend(voronoi(0.2,0.001).mask(shape(30).scale(0.55)),0.2)
.color(216/256,149/256,97/256)
// .scale(() => 0.5 + 3 * Math.sin(time/60))
.out(o1)
......@@ -28,5 +28,6 @@ src(o0)
src(o2)
.modulate(o2,() => Math.sin(time/1000))
.scale(() => 1.4)
.out(o3)
render(o3)
s0.initImage("///home/pln/Work/Hydra/img/aurores.jpeg")
s0.initImage("///home/pln/Work/Hydra/img/aurores.jpeg")
src(s0).scale(0.9,0.5)
// Source: Aurore
src(s0)
// EFFET: AURORE COLOREE
.add(src(s0)
.color(0.3,() => 0.6 + 0.2 * Math.sin(time/13),() => 0.6 + 0.4 * Math.sin(time / 3))
.contrast(() => 1.7 + Math.sin(time / 20 + time / 13 + time / 7 + time / 93))
.mask(shape(4,0.05,0.4).scale(2,32).scroll(0,0.26))
)
.scale(0.9,0.45)
.scroll(0,0.05)
.scale(1.13)
.out(o0)
//
// Tableau 1: Camille sur son bateau
//
src(o0)
.blend(src(o0)
// EFFET: DEGRADATION MOIREE
// .diff(src(o1).scale(() => 0.99 + 0.1 * Math.sin(time / 1000)))
.diff(src(o1).scale(() => 0.9 + 0.2 * Math.sin(time / 10)))
// EFFET: Borealis
.add(
src(s0)
)
.modulate(
osc(() => 5 + 4 * Math.sin(time/120),0.0).rotate(() => (time/10 % 360))
osc(() => 15 + 4 * Math.sin(time/120),0.0).rotate(() => (time/10 % 360))
,1).modulatePixelate(s0).blend(o1,() => 0.99 + 0.1 * Math.sin(time/10))
// , () => 0.4 + 0.2 * Math.sin(time/1993)
.mask(shape(4,0.05,0.2).scale(2,32).scroll(0,0.26))
)
.out(o1)
src(o2)
.modulateScale(src(o2).scale(0.9))
.out(o2)
//
// Tableau 2: ETOILES <3 <3 <3
//
src(o1)
// .add(src(o2).invert().thresh(0.9).invert(),1)
// ETOILES <3 <3 <3
.add(
noise(100,0.5).thresh(0.95).mask(shape(4,0.2,0.1).scale(1.4,3).scroll(0,0.25)))
noise(100,0.10005).thresh(0.9).scale(0.25).mask(shape(4,0.2,0.1).scale(1.4,3).scroll(0,0.25)))
// .modulateScale(src(o2).scale(0.9))
.out(o2)
//
// Tableau 3: Le cadre
//
src(o2)
// Cadre
.mask(shape(4,0.5,() => 0.02 + 0.02 * Math.sin(time / 13)).scale(2,0.51))
.mask(shape(4,0.43,() => 0.02 + 0.02 * Math.sin(time / 1.3)).scale(2,0.51))
.out(o3)
render(o3)
s0.initImage("///home/pln/Work/Hydra/img/aurores.jpeg")
s0.initImage("///home/pln/Work/Hydra/img/aurores.jpeg")
src(s0)
.add(src(s0)
.color(0.3,() => 0.6 + 0.2 * Math.sin(time/13),() => 0.6 + 0.4 * Math.sin(time / 3))
.contrast(() => 1.7 + Math.sin(time / 20 + time / 13 + time / 7 + time / 93))
.mask(shape(4,0.05,0.4).scale(2,32).scroll(0,0.26))
)
.scale(0.9,0.45)
.scroll(0,0.05)
.scale(1.13)
.out(o0)
// Tableau 1: Camille sur son bateau
src(o0)
.blend(src(o0)
// EFFET: DEGRADATION MOIREE
// .diff(src(o1).scale(() => 0.99 + 0.1 * Math.sin(time / 1000)))
// EFFET: Borealis
.add(
src(s0)
)
.modulate(
osc(() => 15 + 4 * Math.sin(time/120),0.0).rotate(() => (time/10 % 360))
,1).modulatePixelate(s0).blend(o1,() => 0.99 + 0.1 * Math.sin(time/10))
// , () => 0.4 + 0.2 * Math.sin(time/1993)
.mask(shape(4,0.05,0.2).scale(2,32).scroll(0,0.26))
)
.out(o1)
src(o2)
.modulateScale(src(o2).scale(0.9))
.out(o2)
src(o1)
// .add(src(o2).invert().thresh(0.9).invert(),1)
// ETOILES <3 <3 <3
.add(
noise(100,0.1).thresh(0.9).scale(0.25).mask(shape(4,0.2,0.1).scale(1.4,3).scroll(0,0.25)))
// Cadre
.mask(shape(4,0.43,() => 0.02 + 0.02 * Math.sin(time / 1.3)).scale(2,0.51))
.out(o3)
render(o3)
//Hide Info | See Full Image | More info
// On July 1 in 1993
// Comet Shoemaker-Levy 9 Fragments
// This image captures the brightest "nucleus" in a string of approximately 20
......@@ -8,7 +7,8 @@
// For Kyu and Ben
// License CC-BY-NC-SA
// Framework Hydra.js by Olivia Jack - hydra.ojack.xyz
s0.initImage("https://imagine.gsfc.nasa.gov/hst_bday/images/july-1-2019-comet-shoemaker-levy-9-fragments.jpg")
// s0.initImage("https://imagine.gsfc.nasa.gov/hst_bday/images/july-1-2019-comet-shoemaker-levy-9-fragments.jpg")
s0.initImage("https://git.plnech.fr/pln/Hydra/raw/d36c64fc40b803849a26fc63c1a3191b12eb9955/StarryNights/img/july1.jpeg")
src(s0)
.out(o0)
......@@ -33,5 +33,5 @@ src(o2)
.blend(o0,0.5)
.out(o3)
render()
// render()
render(o3)
voronoi(40,0.1)
.out(o0)
s0.initImage("/home/pln/Work/Hydra/StarryNights/img/arp299.jpg")
voronoi(140,0.1)
.out(o0)
src(o0)
.repeatY(4)
.scrollX(() => time/36)
.blend(o0)
.repeatY(8)
.scrollX(() => time/360)
.scale(() => 0.995 + 0.55 * a.fft[0])
.out(o1)
render()
render(o1)
// STARRY NIGHT
src(o1)
.mult(src(s0).scale(2))
.rotate(() => ((1 + 0.2 * time + 0.2 * a.fft[3])))
.add(
src(o2)
.thresh(() => 0.9 - 0.25 * (a.fft[3] + a.fft[2]))
.scale(0.99)
// .mask(shape(4).scale(3)).scale(() => 0.99 + 0.125 * a.fft[1])
)
.out(o2)
render(o2)
src(o2)
.invert().thresh(0.9).mask(
shape(4)
.scale(() => 1 - 0.4 * a.fft[0] + 0.2 * a.fft[1] + 0.3 * a.fft[2] + 0.4 * a.fft[3])
.rotate(() => 0.2 - 2 * a.fft[0] + 0.2 * a.fft[3] + time/13)
.modulate(voronoi(() => 2 + 5 * a.fft[2] + 10 * a.fft[3],0.01))
)
.brightness(-0.8)
.add(src(o2).brightness(1.9).contrast(0.81).saturate(() => 2 + a.fft[0]), 0.5)
.out(o3)
render(o3)
a.show()
a.setBins(4)
a.setScale(8)
a.setSmooth(0.8)
......@@ -14,10 +14,12 @@ src(o0)
src(o1)
.blend( // Dark Night
src(o1).sub(
src(o1)
.sub(
noise(() => 10 + 80 * Math.sin(time / 1000))
.luma(() => Math.sin(time / 23))
.invert()),
.invert())
,
() => 0.8 + 0.65 * Math.sin(time / 42)
)
.out(o2)
......
// Le 5 mars 1999
// Galaxie NGC 1512
// Le noyau de la galaxie spirale barrée NGC 1512 est unique en raison de son étonnant cercle d'amas d'étoiles naissants, d'une largeur de 2 400 années-lumière, appelé anneau de flambées d'étoiles « circumnucléaire ».
// Les flambées d'étoiles sont des épisodes de formation stellaire vigoureuse.
s0.initImage("https://imagine.gsfc.nasa.gov/hst_bday/images/march-5-2019-galaxy-ngc-1512.jpg")
src(s0)
.out(o0)
src(o0)
.scale(() => 1.2 + 0.4 * Math.sin(time/12))
// .scroll(0.01)
.blend(src(o2).scale(0.999))
.out(o1)
src(o1)
.add(src(o1).scale(0.95), () => 0.1 + 0.4 * Math.sin(time / 1975))
.out(o2)
src(o2)
.modulate(src(s0)
.scale(() => 1 + 0.4 * Math.sin(time/1975))
.rotate(() => time/(75) % 360)
,() => 0.2 + 0.4 * Math.sin(time / 13))
.add(s0, 0.3)
.brightness(-0.3)
.contrast(1.3)
.out(o3)
render(o3)
......@@ -4,9 +4,6 @@ s0.initImage("/home/pln/Work/Hydra/img/visualsofdana-0j8DqmAYpkw-unsplash.jpg")
s1.initImage("/home/pln/Work/Hydra/img/massimiliano-morosinotto-uJIhAvqFJxg-unsplash.jpg")
// SUNSET
// s0.initImage("https://images.unsplash.com/photo-1495567720989-cebdbdd97913?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
src(s0)
// .modulate(noise())
.scale(1.9)
......@@ -26,7 +23,7 @@ src(o0)
.out(o1)
src(o1)
.scale(0.9)z
.scale(0.9)
.out(o2)
src(o2)
......
......@@ -4,47 +4,45 @@ s0.initImage("/home/pln/Work/Hydra/img/visualsofdana-0j8DqmAYpkw-unsplash.jpg")
s1.initImage("/home/pln/Work/Hydra/img/massimiliano-morosinotto-uJIhAvqFJxg-unsplash.jpg")
// SUNSET
// s0.initImage("https://images.unsplash.com/photo-1495567720989-cebdbdd97913?q=80&w=3870&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D")
src(s0)
// .modulate(noise())
.scale(1.9)
.repeat(4,4)
// .scroll(0,0.13)
.brightness(() => - 0.5)
.repeat(2,4)
.scroll(1, .3)
.brightness(() => -0.7)
.out(o0)
src(o0)
.scale(() => 2 + 0.5 * a.fft[0])
.add(src(s1)
.scale(() => 1.6 + 0.2 * Math.sin(time/10))
.scale(() => 1.2 + 0.2 * Math.sin(time/10))
// .luma(() => 0.99 - 0.2 * a.fft[3] - 0.05 * a.fft[0])
.brightness(() => -0.5 + 0.01 * a.fft[3] + 0.12 * a.fft[2] + 0.05 * a.fft[0])
.brightness(() => -0.5 + 0.01 * a.fft[3] + 0.12 * a.fft[2] + .01*Math.sin(time/55) * a.fft[0])
)
// .mask(src(s0).luma(0.5).invert())
.mask(src(s0).luma(0.5).invert())
.out(o1)
src(o1)
.scale(0.9)z
.scale(0.9)
.out(o2)
src(o2)
.scale(() => 1.2 + 0.05 * a.fft[0])
.scale(() => 1.2 + 0.015 * a.fft[0] + Math.random())
.add(noise(100,0.2).luma(0.99).scale(0.5),
() => 0.4 + 2 * a.fft[0] + a.fft[3]
)
.blend(src(o1)
// .colorama(0.0001)
.rotate(() => (time/12 % 360)) // TODO Rotate
// .rotate(() => (time/12 % 360)) // TODO Rotate
,() => 0.8 * a.fft[2] + 0.2 * a.fft[3])
.hue(() => 0.8 + (0.1 * Math.sin(time)))
.blend(src(o3)
.modulate(voronoi(() => a.fft[3]))
, () => 0.2 + 0.4 * Math.sin(time / 12))
.add(src(o1).scale(() => 1.02 + 0.05 * Math.sin(time)))
.hue(() => 0.8 * Math.sin(time/50) + (0.05 * Math.sin(time)))
// .blend(src(o3)
.modulate(voronoi(() => .2*a.fft[3]))
// , () => 0.2 + 0.4 * Math.sin(time / 12))
// .add(src(o1).scale(() => 1.02 + 0.05 * Math.sin(time)))
.saturate(() => 0 + a.fft[0] + 0.3 * a.fft[1] + 0.4 * a.fft[2])
// .modulate(() => osc(10, 1, .3)+.1*Math.random())
.out(o3)
// render()
render(o3)
a.setBins(4)
......
s0.initImage("/home/pln/Work/Hydra/img/muguet.jpg")
s1.initImage("/home/pln/Work/Hydra/img/muguet-tiles.jpg")
src(s0)
.scale(1, 0.4)
.scale(() => 1.5 + 0.3 * Math.sin(time/19.3))
.scroll(() => 0.008 * Math.sin(time/3), -0.2 * Math.sin(time / 10))
.out(o0)
src(o0)
.blend(src(o0).modulate(noise(1000, () => 0.8 + 0.5 * Math.sin(time / 12))), 0.2)
.mult(
src(s0)
.scale(0.59)
// .scroll(() => -0.005 * Math.sin(time/3), 0.4 * Math.sin(time / 23))
// .thresh(() => Math.sin(time / 1.3) * 0.9)
)
.out(o1)
src(o1)
.blend(src(s1)
.scale(1.4,0.7)
// .rotate([0,Math.PI/2,0,-Math.PI/2].fast(1/8))
.hue(() => 0.45 + 0.05 * Math.sin(time/13)).scale(() => 0.1 + 0.05 * Math.sin(time/200)))
.scale(2)
.out(o2)
src(o2)
.brightness(() => -0.3 + 0.2 * Math.sin(time / 10))
.out(o3)
render()
render(o3)
//FIXME: Mosaic tiles should always be square
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment