p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

Code missing in 1st directionalLight example

Open wagedu opened this issue 1 year ago • 0 comments

Most appropriate sections of the p5.js website?

Reference

What is your operating system?

Mac OS

Web browser and version

All browsers

Actual Behavior

https://p5js.org/reference/p5/directionalLight/ 1st example begins with "// Double-click to turn on the directional light." but the example lacks double click code

Expected Behavior

Double click code in the example to activate the light

Steps to reproduce

https://p5js.org/reference/p5/directionalLight/

My suggestion would be either:

  • Remove the "// Double-click to turn on the directional light.", and let the directionalLight on by default. No need to complicate things OR
  • Add the double-click + enable light code

Would you like to work on the issue?

I could, yes, but depending on your decision for the fix

wagedu avatar Nov 30 '24 21:11 wagedu