Skip to content
Cross-Platform Color Picker Written in Common Lisp
Common Lisp Shell Batchfile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis
resources
screenshots
.gitignore
.travis.yml
LICENSE
README.md
cl-pkr.asd
cl-pkr.lisp
common.lisp
darwin.lisp
deploy.sh
linux.lisp
package.lisp
win32.lisp

README.md

Color Picker Icon

cl-pkr

Cross-Platform Color Picker Written in Common Lisp

platform support Build Status

Screenshots:

  • Linux

    Screenshot on Linux

  • macOS

    Screenshot on macOS

  • Windows

    Screenshot on Windows

Downloads:

  • Linux

    color-picker.AppImage

  • macOS

    color-picker.app

  • Windows

    color-picker.exe

You are supposed to run it on a 64-bit machine

Tested on Fedora 30, macOS Mojave and Windows 10 1809

Usage:

  • On macOS:

    • [Cmd + C] to Copy HEX
    • [Cmd + Shift + C] to Copy RGB
    • [Cmd + Option + C] to Copy HSL
  • On Windows or Linux

    • [Control + C] to Copy HEX
    • [Control + Shift + C] to Copy RGB
    • [Control + Alt + C] to Copy HSL

Known Issues:

  • Multi-Monitor not supported You can only pick color from the main display

Related Links:


Hacking:

  1. Make sure you have SBCL with Quicklisp installed

    • Install a proper SBCL, you can download here
    • Install Quicklisp, you can follow the tutorial here
  2. Make sure you have a bin folder and have a proper tclkit inside

    • mkdir -p bin or just right click to create a folder name bin
    • Download yourself a proper tclkit and rename it to tclkit-gui here
  3. build your application

    sbcl --disable-debugger --load cl-pkr.asd --eval "(ql:quickload 'cl-pkr)" --eval "(asdf:make :cl-pkr)"

Voilà! Check your bin folder for the magic!

What? You use Emacs and SLIME? Great!

Eval (progn (load "cl-pkr.asd") (ql:quickload 'cl-pkr) (setf cl-icebox::*hacking* t)) in your REPL, then you can call (cl-pkr:color-picker), have fun!

Deploy:

There's two options:

  1. Use Travis CI for the good of your health

    you need to add GITHUB_TOKEN according to uploadtool

  2. Use deploy.sh in the root folder

    Run deploy.sh and then check your out folder.

    • Linux and macOS should work out of the box (unless you don't have wget or internet connection).
    • on Windows, you need to have
      • A decent BASH, Git BASH or MSYS2 both should work fine
      • Make sure you have unzip and wget in your BASH.
      • EDITBIN which is part of Build Tools for Visual Studio
        • Find the location of your vcvarsall.bat, then open cmd, and call vcvarsall.bat x64
        • Then, type where editbin, you'll get the absolute path of editbin.exe
        • export EB='C:\long path with space\editbin.exe' in your BASH
        • Now you are blessed to run deploy.sh

Credits


Lisp Caution

You can’t perform that action at this time.