Skip to content

feat: Update naip-mosaic example with choice of colormap - #460

Merged
kylebarron merged 12 commits into
mainfrom
kyle/naip-mosaic-example-colormap-choice
Apr 22, 2026
Merged

kylebarron merged 12 commits into
mainfrom
kyle/naip-mosaic-example-colormap-choice

Conversation

@kylebarron

@kylebarron kylebarron commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Allows choice of colormap in the naip-mosaic example.

Closes #449, uses #447

image
Screen.Recording.2026-04-22.at.5.37.06.PM.mov

kylebarron and others added 5 commits April 21, 2026 12:29
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Replace the single-colormap device.createTexture upload with the
two-phase sprite loader (fetch+decode ImageData on mount, upload to GPU
once Device is ready). Add colormapId/colormapImage state and
colormapChoice useMemo as scaffolding for Task 3 UI wiring.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
@kylebarron kylebarron changed the title Kyle/naip mosaic example colormap choice feat: Update naip-mosaic example with choice of colormap Apr 22, 2026
@github-actions github-actions Bot added the feat label Apr 22, 2026
kylebarron and others added 7 commits April 22, 2026 16:18
Replaces the 5-positional-argument signature with a named RenderNDVIOptions
type, keeping tileData as the first positional per repo convention of max 2-3
positional args.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Now loaded from the shared colormap sprite.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
# Conflicts:
#	examples/naip-mosaic/src/App.tsx
@kylebarron
kylebarron merged commit 2756cf6 into main Apr 22, 2026
5 checks passed
@kylebarron
kylebarron deleted the kyle/naip-mosaic-example-colormap-choice branch April 22, 2026 21:38
@ds-release-bot ds-release-bot Bot mentioned this pull request Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update naip-mosaic example with choice of colormap

1 participant