「Linux」- 拾色程序、拾色器、Color Picker

  CREATED BY JENKINSBOT

问题描述

该笔记将记录:在 Linux 中,我们使用的拾色程序,以及常见问题处理。

解决方案

Gpick is an advanced color picker and palette editing tool

gpick/README.md at master · thezbyg/gpick

源码仓库:thezbyg/gpick: Advanced color picker written in C++ using GTK+ toolkit

Gpick,在 Linux 下的取色程序。

通过仓库直接安装:

apt-get install -y gpick

使用源码编译安装:

编译器要求:
Some of C++14 features are required. Compilation is currently only tested on gcc version 5.3.1.

安装依赖程序:
SCons 2.4 or newer: http://www.scons.org
Ragel 6.8 or newer: state machine compiler (http://www.colm.net/open-source/ragel).
GTK+ 2.24 (http://www.gtk.org).
Lua 5.3 or 5.2 (http://www.lua.org).
Expat (http://expat.sourceforge.net).
Boost 1.58 or newer (http://www.boost.org). Used libraries:

Filesystem.

System.

Test (only when building/running tests).

可选依赖库:
gettext (http://www.gnu.org/s/gettext). Required if ENABLE_NLS is enabled. Required by default.

构建及安装命令:
`scons` to compile all files and place executable file in build/source/.
`scons install` to install executable and resources to DESTDIR. By default DESTDIR is /usr/local.

编译错误汇总:

/usr/bin/ld: build/source/dbus/DbusInterface.o: relocation R_X86_64_32 against `.rodata' can not
be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output

解决方法,使用 CFLAGS=-fPIC scons 编译,即添加 CFLAGS=-fPIC 环境变量

颜色

屏幕的背景:选择一个润眼的保护色。
色调:85,饱和度:123,亮度:205;
RGB颜色红:199,绿:237,蓝:204;
78.0392156863, 92.9411764706, 80
十六进制颜色:#C7EDCC或用#CCE8CF

参考文献

https://www.zhihu.com/question/20620116