Skip to content

lennart/Daumenkino

Repository files navigation

Daumenkino

Live code visuals - A Tidal interface to visuals

Daumenkino is the german word for flip-book, it serves as an analogy for how it works. Make your own flip-books in real-time from single frames of a video or completely from scratch using geometric shapes. Think of animated gifs combined with a plot, you decide, in realtime.

Installation

To install Daumenkino run:

git clone https://github.com/lennart/Daumenkino
cd Daumenkino
cabal install

Place daumenkino.el in an emacs load-path, require the daumenkino package and start a session in a .tidal file via:

M-x daumenkino-start-haskell

Usage

the simplest thing is to show a plane that fades from white to transparent:

s1 $ shader "plane"

Available shaders are:

  • plane
  • tri
  • circle

other shader names will be read as imagefile names similar to how Dirt does.

These params accept float patterns:

  • dur - duration the shader is shown
  • width, height (and also size for equal width and height)
  • x, y - positioning
  • speed
  • red, green, blue
  • alpha - transparency
  • rot_x - rotation around x axis
  • origin_x, origin_y - origin for rotation, to rotate around a certain point

Special params which accept different patterns:

  • color - accepts hex colors like #ff0099
  • blend - blendmode accepts the following values:
    • c SRC_COLOR
    • a SRC_ALPHA
    • C DST_COLOR
    • A DST_ALPHA
    • l CONSTANT_ALPHA
    • t CONSTANT_COLOR
    • s SRC_SATURATE_ALPHA
    • x ONE_MINUS_SRC_ALPHA (default)
    • y ONE_MINUS_SRC_COLOR
    • X ONE_MINUS_DST_ALPHA
    • Y ONE_MINUS_DST_COLOR

About

Live code visuals - A Tidal interface to graphics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published