simon-git: pix (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Nov 11 08:51:29 GMT 2018


TL;DR:
  deb1c1f Allow separate configuration of fade-to colours.

Repository:     https://git.tartarus.org/simon/pix.git
On the web:     https://git.tartarus.org/?p=simon/pix.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2018-11-11 08:51:29

commit deb1c1fc2c12a5dc650583f07d39f1bf744c306a
web diff https://git.tartarus.org/?p=simon/pix.git;a=commitdiff;h=deb1c1fc2c12a5dc650583f07d39f1bf744c306a;hp=6f7b854ae1862da5e3b1e7903f18195b57a4d962
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun Nov 11 08:49:11 2018 +0000

    Allow separate configuration of fade-to colours.
    
    This backward-compatibly extends the previous syntax, because now -c
    and -T are both lists of colours rather than a single colour, and the
    colour of a pixel converting to root #i is determined by looking up
    the (i mod length)th element of each list independently. So a single
    -T colour still applies to all roots, but you can also specify more
    than one. Conversely, you can instead specify a single -c and enough
    -T for each root separately.
    
    While reorganising colfind() to cope, I also removed a pointless check
    for (i % k) < 0, which can only happen if i < 0, which we ruled out at
    the start of the function.

 newton.c | 37 ++++++++++++++++++++-----------------
 1 file changed, 20 insertions(+), 17 deletions(-)



More information about the tartarus-commits mailing list