From addcb2dfdc1e139270d85b53d5e4625dac927be2 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 31 Mar 2018 00:00:32 -0400 Subject: Switch to HSV for gfxx palette generation --- bin/gfxx.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bin/gfxx.c b/bin/gfxx.c index 23c71e3a..5c2c70b9 100644 --- a/bin/gfxx.c +++ b/bin/gfxx.c @@ -117,11 +117,10 @@ int init(int argc, char *argv[]) { fclose(file); } else { for (int i = 0; i < 256; ++i) { - double h = i * 360.0 / 256.0 / 60.0, s = 1.0, l = 0.5; - double c = (1.0 - fabs(2.0 * l - 1.0)) * s; + double h = i * 360.0 / 256.0 / 60.0, s = 1.0, v = 1.0; + double c = v * s; double x = c * (1.0 - fabs(fmod(h, 2.0) - 1.0)); - double m = (l - c / 2.0); - double r = m, g = m, b = m; + double r = v - c, g = v - c, b = v - c; if (h <= 1.0) { r += c; g += x; } else if (h <= 2.0) { r += x; g += c; } else if (h <= 3.0) { g += c; b += x; } -- cgit 1.4.1 collaborative ASCII art
about summary refs log tree commit diff homepage
path: root/sshd_config (unfollow)
Commit message (Collapse)Author
2017-08-08Add put modeJune McEnroe
This is what replace mode used to do.
2017-08-08Remove MADV_NOSYNCJune McEnroe
I don't think this has any benefit. It just takes longer to stop the server because it flushes all the pages then.
2017-08-08Completely retry if a send fails during a broadcastJune McEnroe
This fixes a bug where the saved next client to iterate through would also get removed. This can result in messages being sent multiple times to a client, but that will have no negative effect.
2017-08-08Reverse order of main loopJune McEnroe
2017-08-08Turn off SIGPIPE at the socket levelJune McEnroe
I imagine it's better to not generate SIGPIPE at all rather than generate and ignore.
2017-08-06Rewrite helpJune McEnroe
This code is still terrible.
2017-08-04Use $() in snapshot.shJune McEnroe
I don't know why I wrote ``.
2017-08-02Move in insert direction on ~June McEnroe
2017-08-02Preserve color on replaceJune McEnroe
2017-08-02Split tile access and modifyJune McEnroe
2017-08-01Madvise RANDOM and NOSYNCJune McEnroe
2017-07-31Fix removing clients from clientCastJune McEnroe
2017-07-31Build with debug infoJune McEnroe
2017-07-31Don't dump tiles in coreJune McEnroe
2017-07-31Use designated initializers for messagesJune McEnroe
I did not realize this syntax was so powerful.
2017-07-31Show other clients' cursorsJune McEnroe
Also unfuck removing on send failure.
2017-07-31Perform enter as two moves rather than a loopJune McEnroe
2017-07-31Track tile access countsJune McEnroe
2017-07-31Adjust move speed in clientJune McEnroe
2017-07-31Handle large movesJune McEnroe
2017-07-30Optimize builds for chrootJune McEnroe
2017-07-30Persist bright across color changesJune McEnroe
2017-07-30Add index.htmlJune McEnroe
2017-07-30Add snapshot.shJune McEnroe
2017-07-30Fix termcap patch for background colorsJune McEnroe
2017-07-30Update helpJune McEnroe
2017-07-30Fix help to track colorJune McEnroe
2017-07-30Support background colorsJune McEnroe
2017-07-30Track color only client-sideJune McEnroe
2017-07-30Add ostensible support for background colorsJune McEnroe
2017-07-30Add tile create and access timestampsJune McEnroe
2017-07-30Assert stable struct Tile field offsetsJune McEnroe
2017-07-30Add chroot.shJune McEnroe
2017-07-30Add ` commandJune McEnroe
2017-07-30Add sshd_configJune McEnroe
2017-07-30Add termcap patchJune McEnroe