pixel_snake master READ ONLY 0
  • explorer
  • search
a [App]
a CG.pixel_snake
a README.md
a app.ts
a [Test]
a test
  • README.md

Playground

專門用來快速在畫板上塗塗抹抹的專案。

Getting Started

摳出來成為你自己的新專案後,可用以下幾種工具(在/libs裏的工具)快速畫圖。

// 畫一個紅色的圓
draw.circle(0, 0, 100, {fillColor: 0xFF0000});

// 打開一個確認視窗
dialog.confirm('Are you sure?', 'Click confirm if you think it is ok.')
    .then((confirm) => {
        if(confirm) {
            console.log('User confirmed.');
        }
    });

// 收集資料畫長條圖
let dataCollector = new DataCollector();
dataCollector.addData('一月', 1, 2);
dataCollector.addData('二月', 2, 10);
dataCollector.addData('三月', 3, 5);
dataCollector.addData('四月', 4, 6);
dataCollector.showChart('第一季', 'bar');
READ ONLY
  • problem
  • console
No problems have been detected so far.
Ln 1, Col 1, Sel 0
Markdown