diff options
| author | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-15 13:53:29 +0000 |
|---|---|---|
| committer | Ben Harris <bjh21@bjh21.me.uk> | 2022-12-15 13:53:29 +0000 |
| commit | f1756279d2847aaac33fc3db767cbd23aa69c229 (patch) | |
| tree | a71c6acac2c7c9ef30235079cfd61ca95b67de8e | |
| parent | 8acb84ea7f21a581349458a39ec3f889fd525cc5 (diff) | |
| download | puzzles-f1756279d2847aaac33fc3db767cbd23aa69c229.zip puzzles-f1756279d2847aaac33fc3db767cbd23aa69c229.tar.gz puzzles-f1756279d2847aaac33fc3db767cbd23aa69c229.tar.bz2 puzzles-f1756279d2847aaac33fc3db767cbd23aa69c229.tar.xz | |
Update developer docs for mkhighlight changes
Specifically for passing -1 as a colour number, and for proper handling
of dark backgrounds.
| -rw-r--r-- | devel.but | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -4948,7 +4948,7 @@ sections. Fifteen, Sixteen and Twiddle are good examples of this. Puzzles using this graphical style are running a risk if they just use whatever background colour is supplied to them by the front end, -because that background colour might be too light to see any +because that background colour might be too light or dark to see any highlights on at all. (In particular, it's not unheard of for the front end to specify a default background colour of white.) @@ -4972,6 +4972,10 @@ Thus, \cw{ret[background*3]} to \cw{ret[background*3+2]} will be set to RGB values defining a sensible background colour, and similary \c{highlight} and \c{lowlight} will be set to sensible colours. +Either \c{highlight} or \c{lowlight} may be passed in as \cw{-1} to +indicate that the back-end does not require a highlight or lowlight +colour, respectively. + \S{utils-game-mkhighlight-specific} \cw{game_mkhighlight_specific()} \c void game_mkhighlight_specific(frontend *fe, float *ret, |