Giter Club home page Giter Club logo

hydra-scripts's Introduction

Hydra Scripts

vhs-modulated-gradient.mp4

A collection of different visuals that I have created with Hydra, a JavaScript-based web tool for creating synthesized visuals. You can use it in your browser, download it as a package with the Atom IDE, or connect it to your own webpage with the hydra-synth engine, available via npm.

Getting Started

Running user-created scripts via browser
  • Copy one of the scripts from this repository to your clipboard.
  • Open the Hydra Editor in your browser (Chrome).
  • Click the trash can at the top right of the screen to delete the current visual (after admiring the mesmerizing display).
  • Paste the script from your clipboard into the editor.
  • Press the play button in the top right of the screen, or press CTRL+SHIFT+ENTER.
Creating your own visuals
  • The creator of Hydra, Olivia Jack, has written some instructions for using basic functions.
  • You can easily modify values and press the run button to execute the code and create your own visuals.
  • Try adding a single oscillator as a source. PLEASE NOTE: high frequency oscillations or bright flashes can trigger photosensitive epilepsy. There is the potential for lots of colorful flashing when using moving sources. I recommend using a relatively low integer or decimal (-5.0 - 5.0) as the first and second parameters when first experimenting with the oscillator source. Many sources have a sync (speed) parameter which can control how much movement is happening.
    // create oscillator ( frequency, speed, gradient )
    osc(1,1,0)
      .out()
  • Adding effects before the .out() function:
    osc(1,1,0)
      .diff(noise(2,1)) // apply a difference color filter (with this new perlin noise source) to the oscillator
      .out()
  • Reference the complete list of Hydra functions to see a variety of uses for different sources and effects
  • Pressing CTRL+SHIFT+H will hide/show the code within the editor

hydra-scripts's People

Contributors

mattiwheels avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.