color-picker

Launches a color picker that returns a hex code

macOS only: Launches a GUI color picker, waits for the user to choose a color, and then outputs the corresponding hex color.

Note: if the user clicks cancel instead of choosing a color it’ll return #ffaabb

Usage

USAGE: color-picker
       Launches a system color picker and waits for the user
       to choose a color. Then returns the corresponding hex code.
       If you click cancel it'll output #ffaabb for... reasons.

Metadata:

Tags:

  • gui
  • macos
  • ruby