{"repo":"mazznoer/colorgrad","free":true,"listed":false,"github":"https://github.com/mazznoer/colorgrad","clone":"git clone https://github.com/mazznoer/colorgrad.git","description":"Go (Golang) color scales library for maps, charts, data-visualization & creative coding.","language":"Go","stars":230,"topics":["color","data-visualization","color-scales","gradient","colormap","visualization","visual-encoding"],"license":null,"category":"analytics","readme_excerpt":"colorgrad Go (Golang) color scales library for data visualization, charts, games, maps, generative art and others. Support This Project Index Custom Gradient Preset Gradients Using the Gradient Examples Playground Custom Gradient Basic Custom Colors Using Web Color Format HtmlColors() method accepts named colors, hexadecimal ( #rgb , #rgba , #rrggbb , #rrggbbaa ), rgb() , rgba() , hsl() , hsla() , hwb() , and hsv() . Domain & Color Position Default domain is [0..1]. Set the domain to [0..100]. Set the domain to [-1..1]. Set exact position for each color. The domain is [0..1]. Set exact position for each color. The domain is [15..80]. CSS Gradient Format Blending Mode Interpolation Mode InterpolationLinear InterpolationSmoothstep InterpolationCatmullRom InterpolationBasis Preset Gradients See PRESET.md Parsing GIMP Gradient Using the Gradient Get the domain Get single color at certain position Get n colors evenly spaced across gradient Output: Hard-Edged Gradient Convert gradient to hard-edged gradient with 11 segments and 0 smoothness. This is the effect of different smoothness. Examples Gradient Image Example output: Colored Noise Example output: Playground Basic Random colors Dependencies csscolorparser Inspirations chroma.js d3-scale-chromatic colorful's gradientgen.go Links colorgrad-rs - Rust port of this library","default_branch":null,"files":null,"tree":[],"storefront":"/r/mazznoer","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mazznoer/colorgrad/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."}