Giter Site home page Giter Site logo

apel / generate-colour-palette Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pjcon/generate-colour-palette

0.0 1.0 0.0 2.55 MB

Some tests in generating a visual perception corrected colour palette for Grafana

Python 0.39% JavaScript 0.01% Jupyter Notebook 53.00% HTML 46.60% Shell 0.01%

generate-colour-palette's Introduction

Thu 14 Apr 15:14:29 BST 2022

This repository contains some small tests generating perceptual colour palettes for Grafana. These were intended for use in the IRIS Accounting Portal. Currently there is a tool compile the Grafana colour mapping config from a set of fixed colours generated by some web service. The idea was to automate the palette generator with a local script, and to have that script generate more accessible colours.

The tool attempts to select colours which are equidistant in the human perceptual space (using CIELAB) for any number of colours, therefore making them more distinguishable. It is possible to pick a set of colours in HSV, H being the "colour" equally spaced around a circle, but these vary in brightness and distinguishability depending on the wavelength. It is not as easy to pick a set of equidistant colours in a nonparametric space (CIELAB), so an optimiser is used to nudge the colours as far away as possible from each other as would be seen by a person.

Currently the tool is not very useful when compared to the simpler approach of using a web tool to optimise the colours. But it does mean that it still needs to be handled manually when new data fields are added to the palette.

This repository acts to archive the attempts made and you are encouraged to pick up the work if it becomes relevant again.

generate-colour-palette's People

Contributors

pjcon avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.