1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2015-07-14

[tmlib.js] リファレンスのようなもの
からrunstantでのサンプルが書いてあるものだけをまとめてあります。

目次

geom
graphics
app
ui

.inform

runstant

.geom

Vector2

..Vector2

@setAngle(angle, len)

runstant

@setRadian(radian, len)

runstant

.graphics

Canvas

..Canvas

@clearColor(fillStyle, x, y, width, height)

runstant

@clip()

runstant

@drawLine(x0, y0, x1, y1)

runstant

@drawDashLine(x0, y0, x1, y1, pattern)

runstant

@drawArrow(x0, y0, x1, y1, arrowRadius)

runstant

@strokeLines([args])

runstant

@fillLines([args])

runstant

@fillRoundRect(x, y, width, height, radius)

runstant

@strokeRoundRect(x, y, width, height, radius)

runstant

@fillPolygon(x, y, size, sides, offsetAngle)

runstant

@strokePolygon(x, y, size, sides, offsetAngle)

runstant

@fillStar(x, y, radius, sides, sideIndent, offsetAngle)

runstant

@strokeStar(x, y, radius, sides, sideIndent, offsetAngle)

runstant

@fillHeart(x, y, radius, angle)

runstant

@strokeHeart(x, y, radius, angle)

runstant

@fillCircle(x, y, radius)

runstant

@strokeCircle(x, y, radius)

runstant

@fillArc(x, y, radius, startAngle, endAngle, anticlockwise)

runstant

@strokeArc(x, y, radius, startAngle, endAngle, anticlockwise)

runstant

@fillTriangle(x0, y0, x1, y1, x2, y2)

runstant

@strokeTriangle(x0, y0, x1, y1, x2, y2)

runstant

@fillText(text, x, y)

runstant

@strokeText(text, x, y)

runstant

@fillVerticalText(text, x, y)

runstant

@strokeVerticalText(text, x, y)

runstant

@saveAsImage(mime_type)

runstant

.app

BaseApp
Object2D

..BaseApp

@enableStats()

tm.asset.Script.loadStats()loadイベントで実行すれば確実。
runstant

..Object2D

@isHitPoint(x, y)

runstant

@isHitPointCircle(x, y)

runstant

@isHitPointRect(x, y)

runstant

@isHitElement(elm)

runstant

@isHitElementCircle(elm)

runstant

@isHitElementRect(elm)

runstant

@setOrigin(x, y)

runstant

.ui

Pad
BaseButton
SpriteButton
LabelButton
IconButton
GlossyButton
FlatButton
MenuDialog
Sketch
Gauge
FlatGauge
GlossyGauge
LabelArea

..Pad

runstant

..SpriteButton

runstant

..LabelButton

runstant

..IconButton

runstant

..GlossyButton

runstant

..FlatButton

runstant

..MenuDialog

runstant

..Sketch

runstant

..Gauge

runstant

..FlatGauge

runstant

..GlossyGauge

runstant

..LabelArea

runstant

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?