(p5graphics).height

def setup
  @pg = createGraphics(80, 50)
  @pg.background("yellow")
end

def draw
  background(220)
  image(@pg, 10, 10)
  text("w: #{@pg.width}", 20, 75)
  text("h: #{@pg.height}", 20, 90)
end

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

[p5.js] p5.Graphics

概要

描画用オブジェクト(グラフィックバッファ)の高さが格納されているプロパティです。

書式

obj.height

備考

関連

(p5graphics).width