8000 GitHub - micuat/hydra-book
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

micuat/hydra-book

Repository files navigation

Hydra Book

shape(100,0.35,0.25).out(o0)
osc(40,0.1,1).hue(-0.1).modulate(noise(1,0),0.5).modulateRotate(osc(12,0).kaleid(100),4).out(o1)
src(o2).modulateHue(o1,4).blend(o0,0.03).out(o2)
src(o2).contrast(2).mult(src(o1)).out(o3)
render()

Important Notes

June 24, 2025: Since glitch is retiring, I moved this online book to GitHub. The new URL is https://hydra-book.glitches.me/ (this website) and it is hosted by GitHub: https://github.com/micuat/hydra-book.

You are redirected to hydra-book.glitch.me, which is the latest version of Hydra Book. While I'm sloppy about updating the Github repository, if you find any problems feel free to report on Github issue page.

NEW: you can edit the code in the embedded editor and press shift+enter, ctrl+enter or ctrl+shift+enter to evaluate the code. Currently evaluate line/block is not supported.

Preface

Hydra is an analog-synth-like coding environment for real-time visuals. It is created by Olivia Jack and is open-source. You can simply open Hydra editor to start coding.

For those who just started

There are a few resources besides this book:

Also Flor and Naoto gave an introductory workshop, which can be found here:

<iframe width="560" height="315" src="https://www.youtube.com/embed/TMRooK2c8Is" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

And the workshop material can be found here.

How to Read

This is a work-in-progress online book to collect Hydra snippets. Thanks to its live-coding nature, simply improvising by chaining different functions may lead to an unexpected pattern; nevertheless, studying Hydra in a structured, systematic way can reveal its potential. Thus, the goal of this book is not only to accumulate frequently-used techniques to make coding easier but also to research the theory of Hydra to discover new images.

If you are new to Hydra, I recommend you to skim through the book and find patterns you like, and try the code by pressing "open in editor" link. On the editor, you can change some parameters and press ctrl+shift+enter to re-evaluate the sketch.

If you are already familiar with Hydra, I hope reading this book gives you some insight not only about "how" to make a pattern but also "why" a pattern emerges.

Table of Contents

Understanding Hydra:

JavaScript and applications:

Essays:

License

The code snippets are under public domain, meaning that all the code snippets can be used freely without any restrictions. Nevertheless, I appreciate it if you cite this book or simply let me know when you write about any ideas developed from this book! The explanations and essays are licensed under CC Attribution 4.0 International.

About

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0