[tmlib.js] 関数やクラスのサンプル


[[tmlib.js] リファレンスのようなもの](http://qiita.com/simiraaaa/items/4f566e811d507c384666)
からrunstantでのサンプルが書いてあるものだけをまとめてあります。

# 目次
[geom](#geom)
[graphics](#graphics)
[app](#app)
[ui](#ui)

# .inform
[runstant](http://goo.gl/EKfVNs)

# .geom
[Vector2](#vector2)

## ..Vector2

### @setAngle(angle, len)
[runstant](http://goo.gl/c4tM6R)

### @setRadian(radian, len)
[runstant](http://goo.gl/GuU8fx)


# .graphics
[Canvas](#canvas)

## ..Canvas

### @clearColor(fillStyle, x, y, width, height)
[runstant](http://goo.gl/cUXeWm)

### @clip()
[runstant](http://goo.gl/unOPOu)

### @drawLine(x0, y0, x1, y1)
[runstant](http://goo.gl/1MCQ7n)

### @drawDashLine(x0, y0, x1, y1, pattern)
[runstant](http://goo.gl/ay2Vm9)

### @drawArrow(x0, y0, x1, y1, arrowRadius)
[runstant](http://goo.gl/iaUzd4)

### @strokeLines([args])
[runstant](http://goo.gl/IQt38U)

### @fillLines([args])
[runstant](http://goo.gl/Pu7sCx)

### @fillRoundRect(x, y, width, height, radius)
[runstant](http://goo.gl/fvx9x0)

### @strokeRoundRect(x, y, width, height, radius)
[runstant](http://goo.gl/02NTjM)

### @fillPolygon(x, y, size, sides, offsetAngle)
[runstant](http://goo.gl/zYMYXA)

### @strokePolygon(x, y, size, sides, offsetAngle)
[runstant](http://goo.gl/D1257C)


### @fillStar(x, y, radius, sides, sideIndent, offsetAngle)
[runstant](http://goo.gl/lYSH01)

### @strokeStar(x, y, radius, sides, sideIndent, offsetAngle)
[runstant](http://goo.gl/pCGtQv)


### @fillHeart(x, y, radius, angle)
[runstant](http://goo.gl/tm13Io)

### @strokeHeart(x, y, radius, angle)
[runstant](http://goo.gl/AerJDM)

### @fillCircle(x, y, radius)
[runstant](http://goo.gl/H5S4iQ)

### @strokeCircle(x, y, radius)
[runstant](http://goo.gl/6Y0Xyv)

### @fillArc(x, y, radius, startAngle, endAngle, anticlockwise)
[runstant](http://goo.gl/N2qLCR)

### @strokeArc(x, y, radius, startAngle, endAngle, anticlockwise)
[runstant](http://goo.gl/PYzTGy)

### @fillTriangle(x0, y0, x1, y1, x2, y2)
[runstant](http://goo.gl/LeUN1s)

### @strokeTriangle(x0, y0, x1, y1, x2, y2)
[runstant](http://goo.gl/cj59gf)

### @fillText(text, x, y)
[runstant](http://goo.gl/uno3Fi)

### @strokeText(text, x, y)
[runstant](http://goo.gl/gnpUEO)

### @fillVerticalText(text, x, y)
[runstant](http://goo.gl/OzZjox)

### @strokeVerticalText(text, x, y)
[runstant](http://goo.gl/h8u3Vp)

### @saveAsImage(mime_type)
[runstant](http://goo.gl/ryzTLD)

# .app
[BaseApp](#baseapp)
[Object2D](#object2d)


## ..BaseApp

### @enableStats()
[tm.asset.Script.loadStats()](#loadstats)の`load`イベントで実行すれば確実。
[runstant](http://goo.gl/DaSDkQ)

## ..Object2D

### @isHitPoint(x, y)
[runstant](http://goo.gl/OIzN4s)

### @isHitPointCircle(x, y)
[runstant](http://goo.gl/6o2bpu)

### @isHitPointRect(x, y)
[runstant](http://goo.gl/UPgeZR)

### @isHitElement(elm)
[runstant](http://goo.gl/eUXUMj)

### @isHitElementCircle(elm)
[runstant](http://goo.gl/X8VQMo)

### @isHitElementRect(elm)
[runstant](http://goo.gl/f1neio)

### @setOrigin(x, y)
[runstant](http://goo.gl/wyLmQL)


# .ui

[Pad](#pad)
[BaseButton](#basebutton)
[SpriteButton](#spritebutton)
[LabelButton](#labelbutton)
[IconButton](#iconbutton)
[GlossyButton](#glossybutton)
[FlatButton](#flatbutton)
[MenuDialog](#menudialog)
[Sketch](#sketch)
[Gauge](#gauge)
[FlatGauge](#flatgauge)
[GlossyGauge](#glossygauge)
[LabelArea](#labelarea)


## ..Pad
[runstant](http://goo.gl/kSvY7k)


## ..SpriteButton
[runstant](http://goo.gl/EhLFNm)



## ..LabelButton
[runstant](http://goo.gl/6woMsU)

## ..IconButton
[runstant](http://goo.gl/Xy6tfZ)

## ..GlossyButton
[runstant](http://goo.gl/gJtd1V)


## ..FlatButton
[runstant](http://goo.gl/hL0JXs)



## ..MenuDialog
[runstant](http://goo.gl/1bFi6N)

## ..Sketch
[runstant](http://goo.gl/Auv2Jo)


## ..Gauge
[runstant](http://goo.gl/6Xn8nm)

## ..FlatGauge
[runstant](http://goo.gl/YMt0ID)

## ..GlossyGauge
[runstant](http://goo.gl/R9VHVV)


## ..LabelArea
[runstant](http://goo.gl/iW2sUT)