KievII

KievII

GUI and audio/DSP Javascript library, for web and mobile audio applications developers.


Help KievII stay alive! Contribute with Paypal or Pledgie
Paypal Donation Pledgie Donation

Get Started

Include KievII

 
<script type='text/javascript' src='kievII.min.js'> </script>
    			        	 

Create a KievII UI

 
// Get your Canvas Element ID	        		
var targetCanvas = document.getElementById("your_canvas");
// Create a new KievII UI
var ui = new K2.UI ({type: 'CANVAS2D', target: targetCanvas});
    	        	 

Add an Element to the UI

 
// Set the element arguments
var ElementArgs = {
    ID: 'elementID',
    /* Set the element-specific arguments here (...) */
    onValueSet: function (slot, value, element) {
        /* element callback, called when a slot gets changed */
        ui.refresh();
    }
};
// Add element to the UI
ui.addElement(new K2.UIElement(gaugeArgs, {zIndex: ... }));
                     

hint See the examples page for a quick overview of the available elements and techniques

Remove an Element from the UI

 
// Remove element from the UI
ui.removeElement('elementID');
                     

Applications (made with KievII)


© KievII.net / Bitterspring.net 2013