{"id":15009873,"url":"https://github.com/abdullah-1312007/colors-python","last_synced_at":"2025-05-12T17:30:59.516Z","repository":{"id":62563713,"uuid":"330875171","full_name":"abdullah-1312007/colors-python","owner":"abdullah-1312007","description":"ColorsPy makes it easy to access colors and use them in various programs like PyGame.","archived":false,"fork":false,"pushed_at":"2021-01-27T05:59:51.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T08:44:52.228Z","etag":null,"topics":["color-conversion","colors","colorspy","hex","library","module","package","pycolor","pycolors","pygame","python","python2","python3","rgb"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abdullah-1312007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-19T05:35:36.000Z","updated_at":"2021-07-14T08:50:54.000Z","dependencies_parsed_at":"2022-11-03T16:00:24.461Z","dependency_job_id":null,"html_url":"https://github.com/abdullah-1312007/colors-python","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-1312007%2Fcolors-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-1312007%2Fcolors-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-1312007%2Fcolors-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abdullah-1312007%2Fcolors-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abdullah-1312007","download_url":"https://codeload.github.com/abdullah-1312007/colors-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253787195,"owners_count":21964294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["color-conversion","colors","colorspy","hex","library","module","package","pycolor","pycolors","pygame","python","python2","python3","rgb"],"created_at":"2024-09-24T19:28:59.891Z","updated_at":"2025-05-12T17:30:59.153Z","avatar_url":"https://github.com/abdullah-1312007.png","language":"Python","readme":"# ColorsPy\r\n\r\nThis is a simple python package that can be used for adding colors in PyGame or just to see the RGB values of almost any color.\r\n\r\nExample Code:\r\n- Basic use:\r\n``` py\r\n    from colorspy import *\r\n\r\n    print(red)\r\n    print(blue)\r\n```\r\n\r\n- For PyGame:\r\n``` py\r\n    import colorspy as colors\r\n    import pygame\r\n\r\n    pygame.init()\r\n\r\n    win = pygame.display.set_mode((800, 600))\r\n    run = True\r\n\r\n    while run:\r\n\t\"\"\"\r\n   \tRest of your code\r\n\t\"\"\"\r\n\r\n    \twin.fill(colors.red)\r\n\r\n    \tpygame.display.update\r\n```\r\n\r\n- Color Conversion:\r\n``` py\r\n    from colorspy import *\r\n\r\n    converter = ColorConverter()\r\n\r\n    \"\"\"\r\n    If you want any other color's HEX value, you could just pass a tuple of the RGB values.\r\n    The hash variable is a boolean that tells that if you want a hash sign in the HEX value.\r\n    \"\"\"\r\n\r\n    hex_red = converter.rgb2hex(red, hash=True) \r\n\r\n    \"\"\"\r\n    This will return the RGB value of blue.\r\n    \"\"\"\r\n\r\n    rgb_blue = converter.hex2rgb(\"0000ff\") \r\n```\r\n- Color Picker\r\n``` py\r\nimport colorspy as colors\r\n\r\nmy_color = colors.color_picker()\r\n\r\n\"\"\"\r\nThis will return a list of the RGB value and the HEX value of the color you select. There is also a argument hex_value which is a boolean. You can use that to decide that whether you want the HEX value or not.\r\n\"\"\"\r\n```\r\n\r\nv 0.1\r\n- Added most basic colors.\r\n\r\nv 0.2\r\n- Added support for RGB to HEX and HEX to RGB color conversion.\r\n- Added a few more colors.\r\n\r\nv 0.2.1\r\n- Fixed a minor bug\r\n\r\nv 0.3\r\n- Added a whole lot more colors.\r\n- Added a color picker to choose colors easily.\r\n\r\nv 0.4\r\n- Fixed color values of some colors\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-1312007%2Fcolors-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullah-1312007%2Fcolors-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullah-1312007%2Fcolors-python/lists"}