例題2-1-1
画面にテキストを描画します。
構文
text(str, x, y)
パラメタ
- str
String | Object | Array | Number | Boolean:表示される英数字記号 - x
Number:テキストのx座標 - y
Number:テキストのy座標
コード
function setup(){
createCanvas(300,300);
let s = 'paso-cafe VALON';
fill(0, 102, 183);
text(s, 10, 10);
}結果
