Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Feature/8097 get camera function#8105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
ombalgude wants to merge2,036 commits intoprocessing:main
base:main
Choose a base branch
Loading
fromombalgude:feature/8097-get-camera-function

Conversation

ombalgude
Copy link

Resolves#8097

Changes:
This pull request introduces a new joint getter/setter function, activeCamera(), to the p5.RendererGL.prototype to standardize how the active camera is accessed and modified.

  1. New activeCamera() function:
  • When called with no arguments (activeCamera()), it acts as a getter and returns the current camera object.
  • When called with a camera object (activeCamera(myCam)), it acts as a setter for the active camera.
  1. Deprecated setCamera():
  • The existing setCamera() function is now deprecated.
  • For backward compatibility, it continues to function by calling the new activeCamera() internally.
  • These changes align with the common p5.js pattern of using joint getter/setter functions and improve the consistency of the WebGL API.

PR Checklist

  • npm run lint passes
  • Inline reference is included / updated
  • Unit tests are included / updated

limzykennethand others added30 commitsJune 29, 2025 23:03
…or-docs-for-visual-testing-for-dev-2.0Updating visual tests docs for 2.x versions
…rningsSkip adding degenerate faces in textToModel
…onymousFunctionCallbackFixFix inline anonymous functions causing a parsing error in p5.strands callbacks
…ms-instanceFix p5.strands uniform calls, add instance mode construct
lukeplowdenand others added29 commitsSeptember 16, 2025 19:59
Fix: allow single-arg atan() outside strands; add unit test
[p5.strands] Significant refactor for p5.strands
…a-docsUpdate createCamera docs since it no longer sets the active camera
@welcomeWelcome
Copy link

welcomebot commentedSep 23, 2025

🎉 Thanks for opening this pull request! For guidance on contributing, check out ourcontributor guidelines and otherresources for contributors!
🤔 Please ensure that your PR links to an issue, which has been approved for work by a maintainer; otherwise, there might already be someone working on it, or still ongoing discussion about implementation. You are welcome to join the discussion in an Issue if you're not sure!
🌸 Once your PR is merged, be sure toadd yourself to thelist of contributors on the readme page !

Thank You!

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

new getCamera function for V1 & V2
17 participants
@ombalgude@limzykenneth@LalitNarayanYadav@lukeplowden@perminder-17@davepagurek@nking07049925@Abhayaj247@ksen0@nickswalker@pearmini@shawdm@harishbit@NalinDalal@awood0727@Iron-56@Nitin2332

[8]ページ先頭

©2009-2025 Movatter.jp