Skip to content

Code missing in 1st directionalLight example #8798

@wagedu

Description

@wagedu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions