aboutsummaryrefslogtreecommitdiffhomepage
path: root/dvd/README.md
blob: 4459017e18618da8a9e04b7c6ba457ea077d4c12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# DVD Screensaver #

Just like the good old days, when you paused that DVD movie for a long time, except now you can watch that sweet old screensaver on demand at any time. It might hit the corner one or more times, but it is not guaranteed ;)

To start the animation, just call the following function. You can omit passing the options object for the default experience. For it to work, you need to have a canvas object in your HTML document with id #dvd.

```javascript
playDVD({
    'speed': 200,
    'colors': [
        "#012fff",
        "#ff2190",
        "#ce21ff",
        "#ffec00",
        "#ff8702"
    ]
});
```