Migrate examples to image.filter / image.wrap API#32
Merged
Conversation
The top-level constants image.point, image.linear, image.repeat, image.clamp, image.mirror, and the per-instance image.smooth bool are being removed in the Codea engine in favor of namespaced sub-tables (image.filter.* / image.wrap.*) plus a graphics-style scope (style.filter / style.wrap). See twolivesleft/codea PR #381. Update the two example projects under "How to Codea" that referenced the removed constants. The Migration Guide example also adopts the new image-level setter shorthand (myImg.wrap = image.wrap.clamp). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates Codea “How to Codea” example projects to the new image.filter.* / image.wrap.* API after removal of the legacy top-level image.* constants, ensuring examples remain compatible with the updated engine.
Changes:
- Replace deprecated
image.clampusage withimage.wrap.clampin the Procedural Flames shader example. - Migrate atlas image wrapping in the Migration Guide / Drawing example to the new image-level
wrapsetter shorthand.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
docs/source/code/Examples/How to Codea/5. Shaders/?? - Procedural Flames/Main.lua |
Updates shader texture sampler wrap constant from image.clamp to image.wrap.clamp. |
docs/source/code/Examples/How to Codea/0. Migration Guide/3. Drawing.codea/Main.lua |
Replaces per-axis sampler wrap assignments with slime.wrap = image.wrap.clamp. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Summary
The top-level constants
image.point,image.linear,image.repeat,image.clamp,image.mirror, and the per-instanceimage.smoothbool are being removed in the Codea engine in favor of namespaced sub-tables (image.filter.*/image.wrap.*) plus a graphics-style scope (style.filter/style.wrap). See twolivesleft/codea PR #381.This PR updates the two example projects under "How to Codea" that referenced the removed constants:
docs/source/code/Examples/How to Codea/0. Migration Guide/3. Drawing.codea/Main.lua— also adopts the new image-level setter shorthand (myImg.wrap = image.wrap.clampinstead of two separatesampler.u/sampler.vassignments).docs/source/code/Examples/How to Codea/5. Shaders/?? - Procedural Flames/Main.lua.Test plan
🤖 Generated with Claude Code