Skip to content
프로젝트

소개

:rainbow: Tools for color research

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

coloria

Tools for color research.

PyPi Version PyPI pyversions GitHub stars Downloads

Discord

Coloria is a Python library for color science: color spaces, color appearance models, color difference formulas, chromatic adaptation transforms, and the experimental data to judge them by. All methods are fully vectorized, so they are fast on one color or a million.

Documentation · Pricing

Installation

Install Coloria from PyPI with

pip install coloria

Coloria needs a license to run. The first time you use it in a terminal, it offers to start a free 30-day trial, to take a license key you already have, or to buy one online. See Get started for the details.

Example

Average yellow and blue in sRGB and you get a mid gray. Do it in a perceptual space such as Oklab and you get the color you expected:

from coloria.cs import ColorCoordinates

c0 = ColorCoordinates([1.0, 1.0, 0.0], "srgb1")  # yellow
c1 = ColorCoordinates([0.0, 0.0, 1.0], "srgb1")  # blue

c0.convert("oklab")
c1.convert("oklab")

c2 = (c0 + c1) * 0.5
c2.convert("srgbhex", mode="clip")

print(c2.data)
#6cabc7

What's inside

The sRGB gamut in CIELAB MacAdam ellipses in CIELAB Gradients in Oklab

Articles

Support

Write to [email protected].

관련 프로젝트 살펴보기

불러오는 중…