noLights

概要

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

[p5.js] noLights

サンプル

def setup
  createCanvas(100, 100, WEBGL)
end

def draw
  background(0)
  noStroke

  lights
  translate(-25, 0, 0)
  sphere(20)

  noLights
  translate(50, 0, 0)
  sphere(20)
end

構文

戻値