|cage 023405e14f - using compiler-macro for 'as-rgb'.||1 week ago|
|COPYING||6 months ago|
|Makefile||2 weeks ago|
|README.org||1 month ago|
|cl-colors2.asd||2 weeks ago|
|colornames.lisp||2 weeks ago|
|colors.lisp||1 week ago|
|hexcolors.lisp||6 months ago|
|introduction.txt||9 years ago|
|package-template.lisp||4 weeks ago|
|package.lisp||2 weeks ago|
|parse-x11-colors.lisp||2 weeks ago|
|test.lisp||4 weeks ago|
This is a very simple color library for Common Lisp, providing:
(let ((color1 (hsv 107 62/100 52/100)) ; greenish (color2 (rgb 14/15 26/51 14/15)) ; = violet from X11 (color3 (as-rgb "ff9e00"))) ; from hexadecimal (list ; (as-rgb color1) ; converting to RGB (rgb-combination color1 +blue+ 0.4) ; HSV autoconverted to RGB (hsv-combination color2 +blue+ 0.4) ; RGB autoconverted to HSV color3))
'(#S(RGB :RED 20059/75000 :GREEN 13/25 :BLUE 247/1250) #S(RGB :RED 0.160472 :GREEN 0.312 :BLUE 0.51856) ; observe float contagion #S(HSV :HUE 60.0 :SATURATION 0.6722689 :VALUE 0.96000004) #S(RGB :RED 1 :GREEN 158/255 :BLUE 0))
Observe the float contagion:
cl-colors functions don't care about
the type of the numbers as long as they are a subtype of
within the right range.
This library is so simple that it does not need a lot of documentation
--- just look at the docsstrings in
Normally you should not need to do this, the sources already contain
the autogenerated file
colornames.lisp. However, if for some reason
you need to regenerate this, you can use
make. Even though the
library itself does not depend on X11, regenerating this file will
require the appropriate file in X11.
Please report them on Notabug.
This is a fork of https://github.com/tpapp/cl-colors, the original author marked it as unsupported.