{"repo":"nanxstats/ggsci-rs","free":true,"listed":false,"github":"https://github.com/nanxstats/ggsci-rs","clone":"git clone https://github.com/nanxstats/ggsci-rs.git","description":"🦄 Scientific journal and sci-fi themed color palettes for Rust","language":"Rust","stars":20,"topics":["color-palettes","data-visualization","ggplot2","ggsci","ratatui","sci-fi","scientific-journals","visualization","ggsql","cli"],"license":"MIT","category":"cli-tools","readme_excerpt":"ggsci-rs Rust workspace for scientific and sci-fi color palettes from ggsci. The ggsci crate provides a core registry of the discrete palettes, continuous palettes, fixed discrete iTerm palettes, and Gephi generative discrete palettes. The ggsci-ratatui crate converts that output to ratatui colors and styles in truecolor or ANSI-256 mode. The ggsci-ggsql crate converts palettes to typed ggsql output ranges or explicit-array SQL scale clauses. Core palettes The core registry contains the stored discrete palettes and the continuous palettes represented by canonical interpolation anchors. Use take() for discrete category colors: Use interpolate() for continuous gradient samples: Use sample() for kind-aware dispatch when accepting either palette kind. PaletteKind::{Discrete, Continuous} describes scale semantics. Whether data is stored or generated is an orthogonal implementation detail. Accordingly, Palette::colors() contains category colors for discrete palettes and the canonical interpolation anchors for continuous palettes. iTerm palettes iTerm themes use their own API because each theme has normal and bright variants plus the fixed terminal-channel order Blue, Yellow, Red, Cyan, Green, Magenta: Theme lookup is case-insensitive and treats , - , and whitespace as interchangeable separators while preserving other punctuation. Variant parsing is also case-insensitive. Every ItermPalette reports PaletteKind::Discrete ; normal/bright is an ItermVariant , not a palette kind. The iT","default_branch":null,"files":null,"tree":[],"storefront":"/r/nanxstats","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/nanxstats/ggsci-rs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}