The Gradient Master (TGM)

Last update: Feb 5th 2025

Why?


Layout - Creation zone


The Modifiers

Hue, Saturation, Value. They affect only the preview, and the exported data. Keypoints are not impacted and will keep the value you assigned them. Play with these sliders, you’ll understand.

The Keys

For each key, you have the following items (from left to right):

The Preview

Shows you your gradient, using 12 bit colors. The gradient is displayed zoomed by default (to ease edition/preview). The “zoomed” check box (at the bottom-left of the above screenshot) enables/disables zoomed mode.

Other items


Layout - Export zone


The Data window

This window shows the current gradient as code, but you can also paste data there to update the gradient. The data is composed of a header called grdmstr_data followed by the “dc.w” data itself. The grdmstr_data is given as assembly comment (‘;’) so that it does not interfere with your code. This data contains the keys used to generate the gradient so that you can reload it later to update it. To load a previously edited gradient, just paste the grdmstr_data text and hit the «Load From grdmstr_data» button.

The Import buttons

  1. Paste your dc.w list in the Data window
  2. Choose which platform you are importing from using the “Export platform” combo-box.
  3. Hit the “Load From dc.w list” button.

Note that as there is no key info in a dc.w list, one key will be inserted for every word.

Other items

Values per line : Allows to format the assembly code dump (how many words per line in the “dc.w” part).

Export platform : Chooses for which platform data is imported / exported.

Export languages: Chooses export data language (asm or C).