Repository navigation
Conversation
tychedelia
force-pushed
the
py-camera
branch
from
November 16, 2026 20:50
9e08124 to
775a785
Compare
|
Visual regression: 1 changed of 43 cases
If these changes are intentional, add the baseline |
tychedelia
force-pushed
the
py-camera
branch
from
November 17, 2026 20:30
775a785 to
4e755a6
Compare
tychedelia
marked this pull request as ready for review
November 23, 2026 17:13
tychedelia
force-pushed
the
py-camera
branch
from
November 23, 2026 17:17
bc7e00a to
6a7f3b5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Camera and projection defaults for Python.
Adds
camera(),perspective()andortho()as Python globals and makes their arguments optional, so they behave like Processing's.camera()with no arguments puts the defaultmode_3d()view back.camera(eye, center, up)takes three vectors or nine numbers like Processingperspective()arguments are all optional and default to themode_3d()view (60 degree fov, canvas aspect, near 1, far ten times the camera distance)aspect, it follows the canvas, so resizing the window doesn't stretch thingsortho()arguments are optional too and default to the canvas bounds, like Processing'sortho()mode_3d()numbers live in oneViewDefaultsnow instead of being worked out inline, so all of these use the same valuescamera()flushes first, so anything drawn before the call keeps the view it was drawn withThe ffi, node and wasm frontends still pass an explicit aspect, so nothing changes for them.
Stack created with GitHub Stacks CLI • Give Feedback 💬