def setup
background(220)
strokeWeight(5)
point(30, 20)
point(85, 20)
point(85, 75)
point(30, 75)
end
def setup
background(220)
strokeWeight(5)
point(30, 20)
point(85, 20)
stroke('purple')
strokeWeight(10)
point(85, 75)
point(30, 75)
end
def setup
background(220)
strokeWeight(5)
a = createVector(10, 10)
point(a)
b = createVector(10, 20)
point(b)
point(createVector(20, 10))
point(createVector(20, 20))
end
点を描画します。
| 引数名 | 内容 | 備考 | オプション | デフォルト値 |
|---|---|---|---|---|
| x | 点の x座標 | |||
| y | 点の y座標 | |||
| z | 点の z座標 | WEBGLモードのキャンバスでのみ有効 | ○ | |
| coordinate_vector | 点の座標を示すベクトル | p5.Vectorオブジェクト
なし