diff --git a/README.md b/README.md index dd4c2da..7938e73 100644 --- a/README.md +++ b/README.md @@ -105,12 +105,6 @@ rate:10 ; variable: rate = 10 > 1,1;> 2,2;> 3,3;> 4,4 # Hard > 2,2;> 4,4;> 6,6;> 8,8 -# Horizontal Noise -> 0,10 ?1;> 0,5 ?1;> 0,-5 ?1;> 0,-10 ?1 -``` - -##Noise Brush -``` -# Tight -> 4;> osc_rate:10 osc_scale:10;> osc_rate:15 osc_scale:12;> osc_rate:10 osc_scale:14 +# Symmetric Light +> 1,1 600x;> 2,2 600x;> 3,3 600x;> 4,4 600x ``` \ No newline at end of file diff --git a/index.html b/index.html index 93484c9..d421102 100644 --- a/index.html +++ b/index.html @@ -30,6 +30,6 @@ - + \ No newline at end of file diff --git a/main.js b/main.js new file mode 100644 index 0000000..18d4515 --- /dev/null +++ b/main.js @@ -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) + } + }); +}); \ No newline at end of file diff --git a/manifest.json b/manifest.json new file mode 100644 index 0000000..99b774d --- /dev/null +++ b/manifest.json @@ -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"] + } + } +} \ No newline at end of file diff --git a/media/icon_128.png b/media/icon_128.png new file mode 100644 index 0000000..5ecfd1c Binary files /dev/null and b/media/icon_128.png differ diff --git a/media/icon_16.png b/media/icon_16.png new file mode 100644 index 0000000..aed5233 Binary files /dev/null and b/media/icon_16.png differ diff --git a/scripts/main.js b/scripts/init.js similarity index 96% rename from scripts/main.js rename to scripts/init.js index 5333f54..73ffcf0 100644 --- a/scripts/main.js +++ b/scripts/init.js @@ -1,6 +1,3 @@ - -// Juchecore - var ronin = new Ronin(); ronin.canvas.element = document.getElementById('workspace'); 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); var keyboard = new Keyboard(); -document.onkeyup = function myFunction(){ keyboard.listen(event); }; - -// Done. +document.onkeyup = function myFunction(){ keyboard.listen(event); }; \ No newline at end of file