# 初期設定用のコード (your setup code here)
def setup
createCanvas(100, 100, WEBGL)
camera(0, -30, 100, 0, 0, 0, 0, 1, 0)
normalMaterial
debugMode
end
# 画面描画用のコード (your draw code here)
def draw
background(220)
orbitControl
box(15, 30)
end
def keyPressed
case keyCode
when 'G'.ord
debugMode(GRID) # 'G' -> グリッドのみ
when 'A'.ord
debugMode(AXES) # 'A' -> 軸アイコンのみ
when 'D'.ord
debugMode # 'D' -> グリッド+軸アイコン
when 'N'.ord
noDebugMode # 'N' -> なし
end
end
debugModeの動作をオフにします。
なし
なし