python colornames
v1.1.0
색상 이름을 찾기위한 파이썬 라이브러리.
colornames
라이브러리는 RGB 색상의 이름을 제공합니다. 당신이 찾고있는 정확한 색상에 이름이 없다면 대신 가장 가까운 일치를 찾을 수 있습니다.
pypi : pycolornames
pip install pycolornames
단일 함수 인 find
라이브러리에 의해 노출됩니다. 주어진 색상의 이름을 찾습니다.
>> > import colornames
>> > colornames . find ( 255 , 255 , 255 ) # Decimal RGB
'White'
>> > colornames . find ( '#3e3e3e' ) # Hexadecimal notation
'Dune'
>> > colornames . find ( '#abc' ) # Shorthand hexadecimal
'Cadet Blue'
>> > colornames . find ( 'f5f5f5' ) # Optional '#' prefix
'Wild Sand'
>> > colornames . find (( 123 , 12 , 1 )) # Decimal RGB as a tuple
'Dark Burgundy'
코드는 MIT 라이센스에 따라 라이센스가 부여됩니다. 특정 부품은 CC에 따라 2.5로 라이센스를 부여합니다 (승인 참조).
색상 이름 목록은 Chirag Mehta의 NTC JS를 기반으로하며 CC에 따라 2.5로 라이센스가 부여됩니다.