{"id":16048938,"url":"https://github.com/devongovett/color-generator","last_synced_at":"2025-07-31T12:33:57.458Z","repository":{"id":17035167,"uuid":"19799388","full_name":"devongovett/color-generator","owner":"devongovett","description":"Generates colors based on the golden ratio","archived":false,"fork":false,"pushed_at":"2014-05-14T23:37:58.000Z","size":144,"stargazers_count":21,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-06T14:18:03.845Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/devongovett.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}},"created_at":"2014-05-14T23:16:42.000Z","updated_at":"2023-09-26T17:49:18.000Z","dependencies_parsed_at":"2022-09-10T10:01:34.314Z","dependency_job_id":null,"html_url":"https://github.com/devongovett/color-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devongovett/color-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fcolor-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fcolor-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fcolor-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fcolor-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devongovett","download_url":"https://codeload.github.com/devongovett/color-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devongovett%2Fcolor-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268039875,"owners_count":24185810,"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-31T02:00:08.723Z","response_time":66,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","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":[],"created_at":"2024-10-09T00:11:29.153Z","updated_at":"2025-07-31T12:33:57.417Z","avatar_url":"https://github.com/devongovett.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# color-generator\n\nGenerates colors based on the golden ratio, inspired by Martin Ankerl's \n[blog post](http://martin.ankerl.com/2009/12/09/how-to-create-random-colors-programmatically/).\nThe generated colors are more visually pleasing together than a simple random color generator because\nthey are computed by moving around the color wheel in increments of the golden ratio. \nBy default, the generated colors can used as a background for legible black text, \nbut the color generator can be customized for other uses.\n\nReturns [color](https://github.com/harthur/color) objects so you can convert the colors to any colorspace\nor CSS string representation easily.\n\n\u003cimg src=\"http://f.cl.ly/items/022t3g1n1L0x2T3H2s3q/Screen%20Shot%202014-05-14%20at%204.32.45%20PM.png\" width=\"585\"\u003e\n\n## Example\n\n```javascript\nvar gen = require('color-generator');\n\n// see https://github.com/harthur/color for docs on conversions\ngen().hexString() // '#BF79F2'\ngen().rgbString() // 'rgb(242, 226, 121)'\n\n// provide custom saturation and brightness\ngen(0.8, 0.25).hexString() // '#0D1C40'\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fcolor-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevongovett%2Fcolor-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevongovett%2Fcolor-generator/lists"}