Functions / text string
string(text)
string( )
string(string text)

Function to set and get text string of the object.
string( )
return: string text
Code
<script type="text/javascript">
	function start_1(idCanvas)
	{
		alert(jc('#myText_1').string());
	}
	function onload_1(idCanvas)
	{
		jc.start(idCanvas);
		jc.text("Text example",90,130)
			.id('myText_1');
		jc.start(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px"></canvas>
View
string(string text)
return: object
Code
<script type="text/javascript">
	function start_2(idCanvas)
	{
		jc('#myText_2').string('another text');
	}
	function stop_2(idCanvas)
	{
		jc('#myText_2').string('Text example');
	}
	function onload_2(idCanvas)
	{
		jc.start(idCanvas,true);
		jc.text("Text example",90,130)
			.id('myText_2');
	}
</script>
<canvas id="canvas_2" width="250px" height="265px"></canvas>
View