Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deebloo/modernart
Create Randomized "Modern" art with Kinetic Js.
https://github.com/deebloo/modernart
Last synced: 15 days 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-21T18:05:54.000Z (over 9 years ago)
- Last Synced: 2024-10-31T16:59:36.947Z (2 months 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);
```