https://github.com/maxmx03/colorblender
A lua script to blend hex values
https://github.com/maxmx03/colorblender
Last synced: 7 months ago
JSON representation
A lua script to blend hex values
- Host: GitHub
- URL: https://github.com/maxmx03/colorblender
- Owner: maxmx03
- License: gpl-3.0
- Created: 2022-08-23T13:26:39.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-25T17:28:46.000Z (over 3 years ago)
- Last Synced: 2025-06-19T02:52:24.415Z (7 months ago)
- Language: Lua
- Size: 17.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## colorblender.lua
A lua version of [colorblender.py](https://github.com/ChristianChiarulli/colorblender)
## Usage
Accepts two hex colors and an alpha in the following order:
```
foreground background alpha
```
The closer the alpha is to `0` the more prominent the background will be in the resulting color
The closer the alpha is to `1` the more prominent the foreground will be in the resulting color
*NOTE:* `#` is interpreted as a comment so we need to wrap the input in quotes
```sh
$ lua colorblender.lua '#ffffff' '#000000' 0.1
#1a1a1a
```
```sh
$ lua colorblender.lua ffffff 000000 0.1
#1a1a1a
```
## References & Credit
[tokyonight.nvim](https://github.com/folke/tokyonight.nvim)