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.1.tar.gz (2.1 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for teeworlds_player_color_value_to_rgb-1.2.1.tar.gz
Algorithm Hash digest
SHA256 87184e800b15fb625dc04f872852215d3d3e9f58400b579bae873eda47dd5924
MD5 ccb574d57c58b69524c92eebf1e43df3
BLAKE2b-256 bc9a93de1051b10650554fe027c5c5a76609fee60518a10c29d04d835c727bb3

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