Made by: Steve Wang
I presented a few things about hydra here are some of them.
Make sure system is up to date This tutorial will also teach you how to load your own files into Hydra
1. Make sure npm and nodejs is installed: Check if they are installed.
node --help npm --help
If you one of those do not exist make sure to download it. Download on Linux:
pacman -S npm nodejs
Download on Mac:
brew install node
2. Do:
npm install --global yarn
3. Download zip from github: https://github.com/hydra-synth/hydra For now use this old version (The newest one is broken): https://github.com/hydra-synth/hydra/tree/0b10d01a5ed9fb2b07445474b8f9e14d8ecf5a66
4. Unzip it and move the hydra main directory to where you want it to be.
5. Go to the hydra main directory and type this:
yarn install
if that does not work try this:
yarn install --ignore-engines
6. Then, go to backend and make a directory called:
public
7. Put whatever you want to load in Hydra inside it. Try putting this picture I downloaded from somewhere on the internet:
8. The go back to backend and open server.js on the last line of that file, add this:
app.use(express.static('public'))
9. Go back to hydra main and type:
yarn serve
Use the program. Show can use source for picture, video, other screen, and camera.
Press 5 buttons and show what it does and show how much code it will take.
Sharing hydra with non programmers This program uses a Javascript and a library called hydra to make these weird animations. This is an animation sequencer. You use buttons to add animations of effects to a texture.
R to run
l to loop
L to stop loop
a to re print source
c for colorama
s for solid
r for resolution
o for osc
S for shape
v for voroni
d for diff
n for noise
p for posterize
k for kaleid
m for shift
b for brightness
h for hue
c for saturation
t for rotate
g for gradient
clearAll() for clear all
Before my presentation my classmates have basically explained what hydra is. For those who are still not clear, hydra is a Javascript library that allows you to make cool animations with code. However, when I was using this library I ran into a problem. I was new to this library and programming in general. I did not know how to use it or it's potential. So, I developed this program that can help you use all of the functions and all of what my classmates explained to you just with a click of a button. Click 5 functions, use them, loop them. GIve audience a chance to look at it and show them how much code it would have needed to write and understand but, they could just do all that with a few clicks. Not only can it source pictures, it can source, videos, other tabs on device, and camerfa. (SHOW premade examples). All that can be done with the same method of clicking on the keyboard. So, I think this is a great tool for beginerers to knwo what hydra or programming in general is capable of. It can also be useful to programmers to want to test out ideas of how different animations stacked together or sequnced together would look.
Render function
render() without arguments displays all inputs.
render(s0) only displays one input on the whole screen in this case source s0
In hydra, you can split the screen into four parts or 1 whole part. There are s0,s1,s2,s3. Where those thing will place the image: