A black hole is a place in space where gravity pulls so much that even light can not get out. The gravity is so strong because matter has been squeezed into a tiny space. This can happen when a star is dying.
Piece created with code in Hydra. Hydra is a toolkit for live coding of network visuals created by Olivia Jack (ojack.xyz)
/*
Black Hole
by Daniel Oropeza
Tw: @ferdoropeza
*/
d=0.01
solid(1,1,1)
.layer(
src(o0).modulate(
osc(6,0,1.5).thresh(0,2).brightness(-.5).modulate(
voronoi(5,0.03,2).sub(gradient().r().g()),1)
,0.1)
)
.mask(src(o0).modulate(
osc(6,0,1.5).brightness(-.5).modulate(noise(3,.1).modulatePixelate(
noise(3,.1).thresh(),504,8).add(gradient(),-1),1)
.add(gradient().brightness(-.5),.5)
,-.01)
.mult(src(o0).scroll(0.00,d)
.add(src(o0).scroll(0.00,-d))
.add(src(o0).scroll(d,0.00))
.add(src(o0).scroll(-d,0.00))
.color(.5,.5,.5).add(src(o0) .scrollX([0.001, 0])
.scrollY([0, 0.001]))
.color(1/3,1/3,1/3).contrast(2)
,.7).mask(o0)
.layer(shape(200,[0, 1].smooth(), [0, 1].reverse()
.smooth()).g().scale(1,innerHeight/innerWidth,1).colorama([0, 100].smooth()
.fast(1 / 10))
.luma()
.invert(-1).add(src(o0).modulate(
osc(6,0,4.5).brightness(-.5).modulate(noise(3,.1).modulatePixelate(
noise(3,.1),504,8).add(gradient(),-1),1)
.add(gradient().brightness(-.5),3)
,-.001))))
.add(noise(2000,.3).luma(),-0.1)
.contrast(1.01)
.blend(src(o0).scrollX(.003).scale(1.02),.90)
.modulate(noise(200),.001)
.scrollX([0.001, 0])
.scrollY([0, 0.001])
.modulateScale(osc(1), 0.02, 0.99)
.contrast(1.01)
.modulateHue(
src(o0).scale([1,1.9,0.95])
.scrollY(2,0.5).rotate(()=>time)
.colorama(0.05)
.hue(0.04)
.contrast(()=>1.1-Math.sin(time)*0.01%7+0.5)
.saturate(2.1),
8
)
.modulateScale(o0,0.04)
.scale(1.01)
.out()