出来れば実用的なツール
- motdエディター
var app = tm.display.CanvasApp("#world");
var rec = tm.display.RectangleShape();
rec.on("click",function() {
console.log("oops!");
});
app.currentScene.addChild(rec);
//ヒット判定フラグをON
foo.interaction.enabled=true
foo.interaction.boundingType="circle" //<-他に何が指定できんだろか?
現在の選択色になる
- アイコン
- カラーピッカー
セル群から自分の色を白状させるだけの簡単仕事
echo -e "\e[41m \e[m\e[42m \e[m\e[44m \e[m"
motdな出力をFile APIで実装すればいい。
var FONT_FAMILY_FLAT= "'Helvetica-Light' 'Meiryo' sans-serif"; // フラットデザイン用フォント
var timerLabel = tm.app.Label("開けゴマ").addChildTo(parent);
timerLabel
.setPosition(650, 160) // 親に対しての相対位置か?
.setFillStyle("#444")
.setAlign("right")
.setBaseline("bottom")
.setFontFamily(FONT_FAMILY_FLAT)
.setFontSize(128);
作者が苦手とする黒い画面でうごかしてみる企画
node-canvas使い、強引に出力pngを表示するとか?