summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--rs/palette.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/rs/palette.rs b/rs/palette.rs
new file mode 100644
index 00000000..2b0dec3c
--- /dev/null
+++ b/rs/palette.rs
@@ -0,0 +1,11 @@
+// cargo-deps: hsl
+extern crate hsl;
+
+fn main() {
+    for i in 0..256 {
+        let h = i as f64 * 360.0 / 256.0;
+        let hsl = hsl::HSL { h, s: 1.0, l: 0.5 };
+        let (r, g, b) = hsl.to_rgb();
+        println!("0x{:02X}{:02X}{:02X},", r, g, b);
+    }
+}
values in pngoJune McEnroe 2018-09-18Refactor reads in pngo and clear palette between filesJune McEnroe 2018-09-17Add tRNS support to pngoJune McEnroe 2018-09-11Move gfx man pages to gfx/manJune McEnroe 2018-09-11Move bin man pages to bin/manJune McEnroe 2018-09-11Rewrite gfx.7 and render plaintext READMEJune McEnroe 2018-09-11Remove GAMES from BINSJune McEnroe 2018-09-11Rewrite bin.7 and render to plaintext READMEJune McEnroe 2018-09-11Add "blank" lines to man pagesJune McEnroe 2018-09-10Add mdoc syntax fileJune McEnroe 2018-09-08Fix Nm usage in multi-name man pagesJune McEnroe 2018-09-08Put real dates on man pagesJune McEnroe 2018-09-08Replace gfx README with REAMDE.7June McEnroe 2018-09-08Link gfx man pages in ~/.localJune McEnroe