Rated "T" for "trippy"
Canvas Feedback is an application of an analogue-video-like feedback effect to an HTML5 canvas element.
You can see and play with online here: Canvas Feedback installation at Cat's Eye Technologies.
The idea came about while discussing Nam June Paik, and video art in general, with Gareth Jackson.
It was noted by one of us that, before digital video technology, there were a number of analogue effects that were employed in video art that aren't seen as frequently these days. A notable one was the use of feedback, simplest version being training a camera on a monitor that is displaying the feed from that same camera. More sophisticated applications are of course possible; a relatively famous example is the 1970's version of the Doctor Who title sequence.
The question arose: could something analogous could be done with digital video, and if so, how?
And I came up with this as a simple technique which is similar to video feedback and which can be implemented straightforwardly in an HTML5 canvas element.
The default image used when Canvas Feedback starts up was designed by Gareth Jackson specifically to be a pleasing subject for this feedback process.
Theory of Operation
- Load an initial image into the canvas.
- Copy the image on the canvas into a buffer, rotate it around its centre r degrees, scale it in the X and/or Y dimension, then paste that result back onto the canvas.
- Increase r by a small amount and repeat the process from the second step.
Rotation and scaling are both optional. It works best if the amount of rotation and scaling at each step is kept small, as it will be amplified greatly by the feedback.
It should be noted that this is only a convenient approximation of how analogue video feedback methods tend to work.
Most rely on there being continuous input to the feedback process; for example, a running camera that is introducing ever more frames. The Doctor Who title sequence, for example, seems to be "loaded" with video information from the edges of the screen (although I admit I don't know the details of how it works.)
This mechanism does not do that; the video information in each successive step comes only from the previous step. One result of this is that it will eventually "run out" of information and come to a fixed point (usually with the entire canvas being a single colour, or an unmoving series of concentric rings or discs of colour.)
Distributed under an MIT license. See LICENSE for full information.
- version 1.0: Initial release.
- version 1.0-2015.0826: added the JS1K version to this repo.
- version 1.1: Allowed the parameters to be configured by querystring args.
- version 1.1-2018.0223: Added a button giving link to current parameters.
git clone https://git.catseye.tc/Canvas-Feedback/
- Add file that was missed by git add. Chris Pressey 1 year, 3 months ago
- Merge pull request #1 from catseye/develop-1.1-2018.1 Chris Pressey (commit: GitHub) 1 year, 3 months ago
- Add release note. Chris Pressey 1 year, 3 months ago
- Split launcher and main body code into two different .js files. Chris Pressey 1 year, 3 months ago
- Only reset the width & height when loading image from the UI. Chris Pressey 1 year, 3 months ago
- Add button that shows link to the current configuration. Chris Pressey 1 year, 3 months ago
- Update yoob.js to 0.13. Chris Pressey 1 year, 3 months ago
- Get rid of slightly offensive stylePanel() function. Chris Pressey 1 year, 4 months ago
- Begin to clean up styling and HTML elements. Chris Pressey 1 year, 4 months ago