Functions / delColorStop
delColorStop(n)
delColorStop(int n)

delColorStop(int n)
return: object
Code
<script type="text/javascript">
var colorStops;
var count=4;
	function start_1(idCanvas)
	{
		if(count<0)stop_1(idCanvas);
		jc('#myGradient_1')
			.delColorStop(count);
		count--;
	}
	function stop_1(idCanvas)
	{
		count=4;
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
	function onload_1(idCanvas)
	{
		jc.start(idCanvas,true);
		colorStops=[[0,"#ff0000"],
				[0.5,"rgba(255,255,0,0.5)"],
				[0.6,"rgb(200,255,0)"],
				[0.8,"rgb(0,255,0)"],
				[1,"#0000ff"]];
		gradient=jc.lGradient(0,0,250,265,colorStops)
			.id('myGradient_1')
		jc.rect(0,0,250,265,gradient,1);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View