Skip to main content

吧teeworlds/ddnet中有关颜色的值转换到RGB/HSL(Convert the value of the color in teeworlds/ddnet to RGB/HSL)

Project description

teeworlds_player_color_value_to_rgb

吧teeworlds/ddnet中有关颜色的值转换到RGB(Convert the value of the color in teeworlds/ddnet to RGB)

安装(install):

  • pip install teeworlds_player_color_value_to_rgb

使用/use:

我使用了py自带的math和colorsys库(I used the math and colorsys libraries that come with py)

value到rgb(value to rgb)

  • from teeworlds_player_color_value_to_rgb import value_to_rgb
    value = 8624384
    rgb = value_to_rgb(value)
    print(rgb)
    

value到hsl(value to hsl)

  • from teeworlds_player_color_value_to_rgb import value_to_hsl
    value = 8624384
    hsl = value_to_hsl(value)
    print(hsl)
    

有什么问题请新建Issues(If you have any questions, please create a new Issues)

PS:Everything in English is generated using Google Translate(一切英文使用谷歌翻译生成)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teeworlds_player_color_value_to_rgb-1.2.0.tar.gz (2.1 kB view details)

Uploaded Source

File details

Details for the file teeworlds_player_color_value_to_rgb-1.2.0.tar.gz.

File metadata

File hashes

Hashes for teeworlds_player_color_value_to_rgb-1.2.0.tar.gz
Algorithm Hash digest
SHA256 770f2872a1124cd0883fb6fbe8da684c8e079706ffbfc4f2f97aaa8b673719cd
MD5 dfbda630be954949d575f3bb8d75ea50
BLAKE2b-256 d9fc51e5f16536ab6c677ba41b6a2bbb610b9442b63e4f36cfc432e3690048ca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page