hyper-hydra

hydra-gif

Load .gif files to Hydra sources.

Overview

This extension uses this GIF to canvas script. This method has to completely uncompress the GIF so try to keep your GIFs light. Each source gets their own .gif property which allows you to change how the gif plays.

Usage

.initGif()

s0.initGif(url, delay, params)

Initialize a running GIF in the given source. delay allows you to set a delay in milliseconds from frame to frame, however this argument is optional and you can change it later. params is an object with properties for the regl texture that will act as the source, as the same with any other .init method.

s0.gif

s0.gif

This is the object representing the gif, here are some of its useful properties: