P5Vector.rem

概要

p5.jsリファレンス(参考情報)

[p5.js] rem

サンプル

def setup
  background(220)

  v1 = createVector(3, 4, 5)
  v2 = createVector(2, 3, 4)
  v3 = P5Vector.rem(v1, v2)

  div = createDiv("v3: [#{v3.x}, #{v3.y}, #{v3.z}]")
  div.position(10, 10)
  div.style('font-size', '14px')
  div.style('width', '100px')
end

構文

戻値