https://github.com/deebloo/modernart
Create Randomized "Modern" art with Kinetic Js.
https://github.com/deebloo/modernart
Last synced: over 1 year ago
JSON representation
Create Randomized "Modern" art with Kinetic Js.
- Host: GitHub
- URL: https://github.com/deebloo/modernart
- Owner: deebloo
- Created: 2014-05-10T20:52:15.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-05-21T18:05:54.000Z (about 11 years ago)
- Last Synced: 2025-02-12T07:53:41.255Z (over 1 year ago)
- Language: JavaScript
- Size: 699 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ModernArt
=============
Create Randomized "Modern" art with Kinetic Js.
Fun little learning project for Kinetic js.
```JS
var height = window.screen.availHeight,
width = window.screen.availWidth;
// Create new Kinetic State
var stage = new Kinetic.Stage({
container: 'container',
width: width,
height: height
});
// Create new Art object
var art = new Art({
stage: stage,
colors: ['#006699', '#a60000', '#000000', '#613400', '#035900', '#e04b00', '#858585', '#528ef0']
});
// generate the art!!!!
art.create();
// shuffle art to new positions
window.setInterval(function() {
art.shuffle();
}, 3000);
```