neeasade / colort Goto Github PK
View Code? Open in Web Editor NEWcolort[int]
License: MIT License
colort[int]
License: MIT License
You might be interested in doing color tinting, adjustments, interpolation, or manipulation in general in the Lab color space. I like especially the HCL representation which works like HSV. Once I understood this color space, RGB calculations feel completely wrong and ugly ;).
It works like this:
Convert RGB to Lab -> do your calculations -> Convert back to RGB
I have strange results a valid my .Xresources
file, example I have background defined as:
#define black #2c2e34
*.background: black
colort
gives me
$ colort background && echo
back000000
$ colort -s 1 background && echo
bAC0000und
$ colort -s 2 background && echo
ba0C0000nd
$ colort -s 3 background && echo
bac000000d
$ colort -s 4 background && echo
back000000
$ colort -s 6 background && echo
backgr000000HELL=/bin/bash
$ colort -s 8 background && echo
backgrou000000LL=/bin/bash
$ colort -s 12 background && echo
background
$ colort -s 14 background && echo
background
or
$ colort -s 10 background && echo
background000000=/bin/bash
not to mention what it looks like a memory bug.
An opinion on this?
thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.