More code, more fun


Wires Everywhere

Play with Sams Hydra toy Easel


Hydra is JavaScript

https://hydra.ojack.xyz/?sketch_id=kyPgjuUzwory6Ff5

hydra is just JavaScript code so we have arrays and functions to play with. This code is changing the image that is being shown every 10 seconds or so.


If you have something good - store your code

  • Upload to gallery with the button & if you have a GitHub account please post the link in the comments below.
  • Or paste the code in to the comment but it will be harder to work with

So when you save something there you are saying other people are free to use your ideas / code as long as they credit you. Which is what I did her combining someone else’s code with mine.

https://hydra.ojack.xyz/?sketch_id=SXiugyBHj200s3XG


Learn some things

Go to the function reference https://hydra.ojack.xyz/docs/docs/reference/ and try playing with the examples in the Source and Geometry section. What parameters do they take? etc. Then play with them in your own hydra code.


Feedback and other nonsense

https://hydra.ojack.xyz/?sketch_id=tX9vrHLGgtLsICc3 you can use the output (o0) as a source and cause chaos


https://hydra.ojack.xyz/?sketch_id=gSTZbAdC4UVzEhUV


Next Time

Session 3 - Start your art