Added resources for Chrome OS application support.
This commit is contained in:
parent
d3e5171ba0
commit
4f1f6c21bb
10
README.md
10
README.md
@ -105,12 +105,6 @@ rate:10 ; variable: rate = 10
|
|||||||
> 1,1;> 2,2;> 3,3;> 4,4
|
> 1,1;> 2,2;> 3,3;> 4,4
|
||||||
# Hard
|
# Hard
|
||||||
> 2,2;> 4,4;> 6,6;> 8,8
|
> 2,2;> 4,4;> 6,6;> 8,8
|
||||||
# Horizontal Noise
|
# Symmetric Light
|
||||||
> 0,10 ?1;> 0,5 ?1;> 0,-5 ?1;> 0,-10 ?1
|
> 1,1 600x;> 2,2 600x;> 3,3 600x;> 4,4 600x
|
||||||
```
|
|
||||||
|
|
||||||
##Noise Brush
|
|
||||||
```
|
|
||||||
# Tight
|
|
||||||
> 4;> osc_rate:10 osc_scale:10;> osc_rate:15 osc_scale:12;> osc_rate:10 osc_scale:14
|
|
||||||
```
|
```
|
@ -30,6 +30,6 @@
|
|||||||
<input id='commander_input'/>
|
<input id='commander_input'/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="scripts/main.js"></script>
|
<script type="text/javascript" src="scripts/init.js"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
23
main.js
Normal file
23
main.js
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/**
|
||||||
|
* Listens for the app launching then creates the window
|
||||||
|
*
|
||||||
|
* @see http://developer.chrome.com/apps/app.runtime.html
|
||||||
|
* @see http://developer.chrome.com/apps/app.window.html
|
||||||
|
*/
|
||||||
|
chrome.app.runtime.onLaunched.addListener(function() {
|
||||||
|
// Center window on screen.
|
||||||
|
var screenWidth = screen.availWidth;
|
||||||
|
var screenHeight = screen.availHeight;
|
||||||
|
var width = 500;
|
||||||
|
var height = 300;
|
||||||
|
|
||||||
|
chrome.app.window.create('index.html', {
|
||||||
|
id: "helloWorldID",
|
||||||
|
outerBounds: {
|
||||||
|
width: width,
|
||||||
|
height: height,
|
||||||
|
left: Math.round((screenWidth-width)/2),
|
||||||
|
top: Math.round((screenHeight-height)/2)
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
15
manifest.json
Normal file
15
manifest.json
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"manifest_version": 2,
|
||||||
|
"name": "Ronin",
|
||||||
|
"version": "1.1",
|
||||||
|
"minimum_chrome_version": "23",
|
||||||
|
"icons": {
|
||||||
|
"16": "media/icon_16.png",
|
||||||
|
"128": "media/icon_128.png"
|
||||||
|
},
|
||||||
|
"app": {
|
||||||
|
"background": {
|
||||||
|
"scripts": ["main.js"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
BIN
media/icon_128.png
Normal file
BIN
media/icon_128.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
media/icon_16.png
Normal file
BIN
media/icon_16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 886 B |
@ -1,6 +1,3 @@
|
|||||||
|
|
||||||
// Juchecore
|
|
||||||
|
|
||||||
var ronin = new Ronin();
|
var ronin = new Ronin();
|
||||||
ronin.canvas.element = document.getElementById('workspace');
|
ronin.canvas.element = document.getElementById('workspace');
|
||||||
ronin.overlay.element = document.getElementById('overlay');
|
ronin.overlay.element = document.getElementById('overlay');
|
||||||
@ -15,6 +12,4 @@ document.addEventListener('mousedown', function(e) { if(e.which != 1){ return;
|
|||||||
document.addEventListener('mouseup', function(e) { ronin.brush.draw_stop(e); }, false);
|
document.addEventListener('mouseup', function(e) { ronin.brush.draw_stop(e); }, false);
|
||||||
|
|
||||||
var keyboard = new Keyboard();
|
var keyboard = new Keyboard();
|
||||||
document.onkeyup = function myFunction(){ keyboard.listen(event); };
|
document.onkeyup = function myFunction(){ keyboard.listen(event); };
|
||||||
|
|
||||||
// Done.
|
|
Loading…
x
Reference in New Issue
Block a user