JavaScript
Run Code
Open in Fiddle
var yellowGreenColor = Ext.draw.Color.fromHSL(79.74, 0.61, .5), yellowGreenColorTransparent = Ext.draw.Color.create( 154, 205, 50, .4 ); Ext.getBody().appendChild({ tag : 'div', html : 'toString(): ' + yellowGreenColor.toString(), style : 'padding:15px;height:100px;display:inline-block;border:solid 1px;margin:10px;background-color:' + yellowGreenColor.toString() }); Ext.getBody().appendChild({ tag : 'div', html : 'toString(): ' + yellowGreenColorTransparent.toString(), style : 'padding:15px;height:100px;display:inline-block;border:solid 1px;margin:10px;background-color:' + yellowGreenColorTransparent.toString() });