The Deadliners / Lemon.
The Amiga Gradient Master (TAGM)

April 2021
Link
Amiga Gradient Master (deadliners.net)
Why?
- Allow graphic artists to preview how a gradient will behave on Amiga using 12 bits colors, especially to avoid ugly banding effects
- Provide programmers with palettes, directly as assembler source code.
- Let the coders use their Windows or Linux machine, and the artists use their Mac. Hence the choice of a web tool (unfortunately, I suck at javascript).
Layout

Modifiers zone
- They affect only the preview, and the exported data. Keypoints are not impacted and will keep the value you assigned them
Keys zone
Buttons
- Add Keypoint adds a new key below the last key
- Refresh makes sure the preview & export zones are refreshed
- Import is a specific case: If you already have a picture featuring the gradient you need, you can just click this button to load your image file and use the data (Amiga assembly code) in the export window. Importing an image will do things the dirty way: 1 keypoint is created per line, the color of the keypoint being the first pixel of each line in your image.
Keys
For each key, you have the following items (from left to right):
- Color : just click on the colored rectangle to pick a new color
- Line index : the Y of the key.
- Interpolation : How colors are interpolated from this key to the next key. 3 possible values:
- linear : linear interpolation
- near → far : fake perspective (cosine interpolation) with current key being near and next key being far
- far → near : fake perspective (cosine interpolation) with current key being far and next key being near
- Color mode : how colors are rendered between current key and next key. 2 possible values:
- direct : no modification, pure value
- shuffled : lines are interleaved to give more “texture” to the gradient
- delete key (minus icon) : deletes the key
- duplicate key (plus icon) : duplicates the key
Note that the last key has no “interpolation” or “color mode” options; as there is no next key to the last key.
Below the keys, 2 extra fields remain:
- Line Count : Number of lines you want your gradient to be (height). This should update the preview zone immediately
- Zoomed : By default - and to ease visualization - the preview window features twice the line count (just for visualization). Untick the “Zoomed” check boy to see the actual size.
Export zone
Coders will know what to do with this data. Still, there are some important details:
• Values per line : Allows to format the assembly code dump.
• grdmstr_data info that comes before the «palette:» label features the information to re-generate the data. Keep this piece of text somewhere if you want to save a copy of your settings and adjust your gradient later.
• To load a previously edited gradient, just paste the «grdmstr_data» text and hit «Load From Text» button