{"id":20217415,"url":"https://github.com/windowsnt/colorpicker","last_synced_at":"2025-07-21T16:33:22.802Z","repository":{"id":80700400,"uuid":"268579254","full_name":"WindowsNT/ColorPicker","owner":"WindowsNT","description":"Win32 Direct2D Modern ColorPicker","archived":false,"fork":false,"pushed_at":"2020-09-29T10:00:59.000Z","size":448,"stargazers_count":23,"open_issues_count":0,"forks_count":12,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-10T16:06:56.198Z","etag":null,"topics":["alpha-channel","colorpicker","cplusplus","direct2d","hsl","rgb","win32"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WindowsNT.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-01T16:50:13.000Z","updated_at":"2025-01-15T14:32:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"e01d96aa-57b0-4c5d-ba49-aca07fc1c800","html_url":"https://github.com/WindowsNT/ColorPicker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/WindowsNT/ColorPicker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindowsNT%2FColorPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindowsNT%2FColorPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindowsNT%2FColorPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindowsNT%2FColorPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WindowsNT","download_url":"https://codeload.github.com/WindowsNT/ColorPicker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WindowsNT%2FColorPicker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266334545,"owners_count":23913002,"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","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["alpha-channel","colorpicker","cplusplus","direct2d","hsl","rgb","win32"],"created_at":"2024-11-14T06:33:59.521Z","updated_at":"2025-07-21T16:33:22.782Z","avatar_url":"https://github.com/WindowsNT.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Direct2D Modern ColorPicker for Win32 with Alpha support\n\n```C++\n\nFeatures\n\n\t* One header file\n\t* Direct2D drawing\n\t* Alpha\n\t* HSL and RGB support\n\t* Can use the system dialog\n\t* Supports a picker\n\n\n```\n\n\n![RGB](https://github.com/WindowsNT/ColorPicker/raw/master/rgb.jpg?raw=true)\n![HSL](https://github.com/WindowsNT/ColorPicker/raw/master/hsl.jpg?raw=true)\n\n\n\nTo use, simply:\n\n```C++\n\n\tCOLORPICK cp;\n\tD2D1_COLOR_F red = {1.0f,0,0,1.0f};\n\tHRESULT hr = cp.Show(hParent,red);\n\tif (hr == S_OK)\n\t{\n\t\t// Color is set\n\t}\n\n```\n\nOptionally you can configure parameters by passing this structure:\n\n```C++\n\n\n\nstruct COLORPICKOPT\n{\n\tbool Alpha = 1;\n\tint Mode = 1;\n\tbool Dlg = 1;\n\tbool LUpdate = 0;\n\tbool AlsoUseSystem = 1;\n\tbool UsePicker = 1;\n\tfloat Resolution = 0.1f;\n};\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindowsnt%2Fcolorpicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwindowsnt%2Fcolorpicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwindowsnt%2Fcolorpicker/lists"}