aboutsummaryrefslogtreecommitdiffhomepage
path: root/dvd/README.md
blob: ee80d7055a92420b9848e3c4b88ce37a816ab0cd (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.

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"
    ]
});
```