createToon()
Toonインスタンスを生成する。Mobileへの登録はしない。
Usage
- Mobile.createToon( element, cls [, options] );
Arguments
- element
- String | HTMLElement
- div要素のid属性、またはHTMLElement
- cls
- String
- div要素のclass属性。
- options
- Object
追加オプション設定。
Toonインスタンスに反映される。
- top
- left
- width
- height
- 要素のメトリックス。
- scale
- scaleforce
- relate
- src
- bgx
- bgy
Return value
- Toonインスタンス
Description
Toonを生成する。
Mobileへの登録はしないのでアニメーションを行わないが、CPU負荷を減らす事が出来る。
Mobile.append()を使用する事でアニメーションが可能になる。
SAMPLES
var toon=Mobile.createToon('id', 'className',
{top:100,left:100,width:100,height:100,src:'star.png'});