Add Angle Z (pseudo-3D depth) to the iterations grid#3
Closed
mmichelli wants to merge 2 commits into
Closed
Conversation
Rename the existing Angle control to Angle XY (the in-plane spiral/swirl) and add Angle Z, which tilts each cell's offset into depth and projects it orthographically back to 2D. The tool is flat — Figma, Penpot, and SVG have no depth axis — so the math is 3D internally but the output is plain 2D positions, keeping export and round-trip behavior intact. angleZ=0 reproduces the prior pure-XY output exactly, and the field is optional for back-compat with saved configs and library entries. https://claude.ai/code/session_013Gbz4nk3D9f6H16U1jrbMY
Add a Depth control (0-100%) that uses each cell's projected depth from the Angle Z tilt as a near/far cue: cells leaning toward the viewer grow and stay bright, cells leaning away shrink and fade. The angle engine now returns the normalized depth alongside the projected offset, and the shading folds into the per-cell scale/opacity in the shared evaluateCell, so both the browser preview and the Figma/Penpot orchestrator pick it up with no render-path changes. depthShade defaults to 0 (pure projection) and is a no-op without a nonzero angleZ. The diff layer re-applies scale/opacity when shading is active and position or tilt changes. Library entries can declare an optional depthShade. https://claude.ai/code/session_013Gbz4nk3D9f6H16U1jrbMY
Contributor
Author
mmichelli
added a commit
that referenced
this pull request
May 23, 2026
Code-review follow-ups (#3, #6): - Add cellCount() with a MAX_CELLS (10000) cap, used by the orchestrator and preview render loop, so a 50×50×50 config renders a truncated result instead of cloning 125k host nodes and freezing. - Library "every formula evaluates" test now iterates layers (passing l), so 3D presets like Cube are exercised at every depth, not just layer 0.
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.
Rename the existing Angle control to Angle XY (the in-plane spiral/swirl)
and add Angle Z, which tilts each cell's offset into depth and projects it
orthographically back to 2D. The tool is flat — Figma, Penpot, and SVG have
no depth axis — so the math is 3D internally but the output is plain 2D
positions, keeping export and round-trip behavior intact. angleZ=0 reproduces
the prior pure-XY output exactly, and the field is optional for back-compat
with saved configs and library entries.
https://claude.ai/code/session_013Gbz4nk3D9f6H16U1jrbMY