Repository navigation
Add the generators Gradient, Stripes, Waves and Noise (#104) - #707
Merged
Merged
Conversation
Member
Author
aalex
approved these changes
Dec 4, 2026
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
Four new generators in File > Add Generator, drawn by the graphics card from ISF files, after Checker, Grid, Color and Color Wheel:
Each of them blends its colours as Blend says: RGB, in a straight line; Hue, through the hues the shorter way round the colour wheel; Rainbow, the longer way round, all the hues when both colours have the same. The hues go through OKLab (Björn Ottosson, MIT License), so that the lightness stays even.
All of them move as soon as they are added, at 6 per minute: repeats, pairs of stripes or waves that go by in a minute, or cycles of the noise. This default is provisional, to be confirmed by the people who run the workshops. The speed is a new unit, per minute ("/min"), also given to the flow of Color Wheel. The motion comes from the animator of ISF, a fraction of a cycle that wraps around: it never jumps when the speed changes, and keeps its precision however long MapMap runs, which matters on the Raspberry Pi.
Also:
GROUPS.CREDITand inresources/shaders/CREDITS.md. Waves, the conic and diamond gradients and the plasma are new.Slice: Générateurs visuels (#104).
Demo
Tests
make checkon Ubuntu (offscreen): 724 tests pass, every commit builds and passes alone. New: pixel tests of each generator (shapes, colours, hardness with two and three colours, sharpness, rings at equal distances, seed, the three blends), the motion of stripes when the speed changes, the round trip of a project with the four generators (tests/fixtures/patterns.mmp), the unit per minute, the menu order and the folded groups of Color Wheel.Tried in MapMap on Ubuntu, in English and in French (screenshots below).
Time to draw one image,
--frame-stats-sync, Ubuntu, Intel Core Ultra 9 275HX with its integrated graphics (Mesa 26), median over 20 s:Blending through the hues costs more, at 2048 × 2048: Gradient (Hue) 2.97 ms, Stripes (Rainbow) 2.71 ms, Waves (Rainbow) 3.17 ms, Noise smooth (Rainbow) 7.44 ms.
Not measured: macOS and the Raspberry Pi. @aalex, could you run the same measure on the Mac (
--frame-stats-sync, with the project attached)?