Skip to content

maxmx03/colorblender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

colorblender.lua

A lua version of colorblender.py

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

$ lua colorblender.lua '#ffffff' '#000000' 0.1
#1a1a1a
$ lua colorblender.lua ffffff 000000 0.1
#1a1a1a

References & Credit

tokyonight.nvim

About

A lua script to blend hex values

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages