With this update, you can access the various layer used to create the final effect.
You can check the edited demo.
HEre's a screenshot showing you how to create a cloud texture, for example :
The demo : https://dl.dropbox.com/u/1412774/ChromaninTexGenDemoEditor/index.html
The plugin : https://dl.dropbox.com/u/1412774/ChromaninTexGenDemo/pode_chromanin.1.1.zip
The .capx : https://dl.dropbox.com/u/1412774/ChromaninTexGenDemo/ChromaninTexGenDemoEditor.capx
Here's a plugin that let you create procedural texture (think Perlin noise, eroding layers, cell machines and all that )
All the following textures where produced by the plugin :
It is a port of Chromanin.js for C2 (http://amsqr.github.com/chromanin.js/texgen.html)
I modified the code a bit to let it works under "strict" mode, and do some operations faster. If you spot a bug, don't hesitate to post it here !
The texture are created procedurally, with bit of scripting.
As in the linked example page, you need to specify what you want to do.
For example, the following lines produce the tiles red carpet of the first screenshot :
ch = new Chromanin(256,'canvas1');
As you can see, you can copy-paste scripts straight from the original Chromanin, and they work !
For the first line of each script, you need to keep
ch = new Chromanin(XXX,'YYY');,
but for XXX you can enter any size, my code will discard it, as well as the YYY name. You just need to set the size of your texture first via the "Set Texture size" function call in Construct2.
(Working that way allow you to copy/paste scripts made by others without thinking about it too much).
When the script has finished rendering the texture, you can grab it as a base64 image string, and Load it inside a regular Sprite.
If you want to use some procedural texture (coulds, grass...) in your game, the best would be to generate them during the loading of the game.
If you want to know all the possibilities, you can go to the original editor page : http://amsqr.github.com/chromanin.js/editor.html
The demo : https://dl.dropbox.com/u/1412774/ChromaninTexGenDemo/index.html
The plugin : https://dl.dropbox.com/u/1412774/ChromaninTexGenDemo/pode_chromanin.1.0.zip
The .capx : https://dl.dropbox.com/u/1412774/ChromaninTexGenDemo/ChromaninTexGenDemo.capx