[Proc Gen] ColorLayer - apply_threshold, apply_gradient, apply_ranges #201
Labels
No labels
Alpha Release Requirement
Bugfix
Demo Target
Documentation
Major Feature
Minor Feature
priority:tier1-active
priority:tier2-foundation
priority:tier3-future
priority:tier4-deferred
Refactoring & Cleanup
system:animation
system:documentation
system:grid
system:input
system:performance
system:procgen
system:python-binding
system:rendering
system:ui-hierarchy
Tiny Feature
workflow:blocked
workflow:needs-benchmark
workflow:needs-documentation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Depends on
#193 [Proc Gen] HeightMap - Core class with scalar operations
john/McRogueFace
#197 [Proc Gen] HeightMap - Threshold operations
john/McRogueFace
Reference
john/McRogueFace#201
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent Issue: #192
Depends On: #193 (HeightMap core), #197 (HeightMap threshold - for value preservation)
Overview
Add methods to ColorLayer for applying HeightMap data to colors, including gradient interpolation.
Specification
Set fixed color where source value is in range. Color is
(R, G, B)or(R, G, B, A).Interpolate between colors based on source value within range.
color_lowcolor_highApply multiple color assignments. Each range maps to either a fixed color or a gradient.
Example
Implementation Notes
HeightMap.threshold()preserves values - for gradient lerpingapply_ranges, detect gradient vs fixed by checking if value is tuple of 2 tuplesAcceptance Criteria
apply_thresholdsets fixed colors correctlyapply_gradientproduces smooth color transitionsapply_rangeshandles mixed fixed/gradient entries