It'll be convenience for hydra used by Node.js.
![](https://camo.githubusercontent.com/00a6934a2ef2f616404094bff671cb1719c16a8f2d37a6e1b94a16d86656c00c/68747470733a2f2f63646e2e676c697463682e6d652f70726f6a6563742d6176617461722f65666430643161642d343937372d343765612d613264392d3963653035643463373066612e706e673f323032332d30322d31305431343a33363a35322e3532365a)
First, please use the following code to read on hydra.
await loadScript("https://nodegl.glitch.me/function-list.js");
When you'd like to change the canvas axis to "y" perspective.
It can be modulated using the difference between "solid" and "gradient" color changes.
You can also use functions that store trigonometric and inverse trigonometric functions to change the video.
The options available within hydra's "ease" function can also be easily specified.
Variables can be defined sequentially and the last variable among them can be used. (It can also be used outside of hydra.)
Two different functions can be entered, each increasing in a different step, and the results put into an array and modulated.
It can generate an array from 0 to a specified number and output a random value.
It can generate an array from 0 to a specified number, repeatedly output a random value, and store it in the array again.
Four output videos can be looped and switched every specified number of seconds at specified speeds.
Others(form, pad, particle, rbga, hsb, rainbow and zebra)
form(4,2,0,1,15,1/8,0).colorama(3).luma().hue(()=>Math.sin(time/10),()=>Math.cos(time/10),()=>Math.tan(time/10)).diff(gradient(1)).invert().scale(Math.PI).repeat().out();
pad(10,o0,4,0,1,.99).diff(osc(1,2,300).diff(gradient(1)).scale(.1)).diff(rgba(o0,1,1,1,1)).diff(hsb(o0,1,1,1/4)).invert().out();
gradient().blend(rainbow(3)).out();
osc(1,2,300).diff(gradient(1)).scale(.1).diff(particle(o0,.99)).invert().out();
s0.initCam();
solid().add(zebra(src(s0), 2, 4, Math.sin, 0.1)).out();
Click here for more information.
I appreciate all hydra users or developers on GitHub, FB, Twitter or Discord, etc...
By Hirotoshi Uchida
hearthis.at
IG
First commited as "NodeBook"
on Jan 19th, 2023.
on Apr 20th, 2023.