image

概要

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

[p5.js] image

サンプル

※以下のサンプルの実行の際には、rbCanvas/p5エディタ上で
 適当な画像ファイルの取り込みをおこなってください。

def setup
  img = loadImage("fruit.png")
  image(img, 0, 0)
end
def setup
  img = loadImage("fruit.png")
  background(50)
  image(img, 10, 10, 50, 50)
end
def setup
  img = loadImage("fruit.png")
  background(50)
  image(img, 0, 0)
  image(img, 50, 0, 40, 20, 50, 50, 50, 50)
end

構文

戻値