Skip to content

Fix directionalLight example: add missing doubleClicked handler#8525

Open
rakesh2OO5 wants to merge 1 commit intoprocessing:mainfrom
rakesh2OO5:fix/directionalLight
Open

Fix directionalLight example: add missing doubleClicked handler#8525
rakesh2OO5 wants to merge 1 commit intoprocessing:mainfrom
rakesh2OO5:fix/directionalLight

Conversation

@rakesh2OO5
Copy link

The directionalLight() reference example mentions double-click behavior and defines isLit, but does not implement a doubleClicked() handler.

This PR adds a minimal doubleClicked() function to toggle the light state so the example matches the documented behavior.

Related to processing/p5.js-website#646.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant