{"id":27139338,"url":"https://github.com/sterlingwes/randomcolor","last_synced_at":"2025-04-08T04:57:47.685Z","repository":{"id":4675691,"uuid":"5822113","full_name":"sterlingwes/RandomColor","owner":"sterlingwes","description":"Javascript module for generating random, distinguishable, pleasing colors (ie: for chart series).","archived":false,"fork":false,"pushed_at":"2023-03-03T11:00:08.000Z","size":884,"stargazers_count":91,"open_issues_count":11,"forks_count":12,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-16T00:25:29.664Z","etag":null,"topics":["chart","colors","colour","colours","javascript","random","series"],"latest_commit_sha":null,"homepage":"http://sterlingwes.github.io/RandomColor","language":"JavaScript","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/sterlingwes.png","metadata":{"files":{"readme":"Readme.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2012-09-15T17:02:06.000Z","updated_at":"2024-04-20T16:26:43.000Z","dependencies_parsed_at":"2023-07-05T18:01:46.231Z","dependency_job_id":null,"html_url":"https://github.com/sterlingwes/RandomColor","commit_stats":{"total_commits":35,"total_committers":3,"mean_commits":"11.666666666666666","dds":"0.11428571428571432","last_synced_commit":"7800e026e057f15a64aedcca1547a86e2183d3b2"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlingwes%2FRandomColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlingwes%2FRandomColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlingwes%2FRandomColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sterlingwes%2FRandomColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sterlingwes","download_url":"https://codeload.github.com/sterlingwes/RandomColor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247779702,"owners_count":20994573,"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":["chart","colors","colour","colours","javascript","random","series"],"created_at":"2025-04-08T04:57:47.121Z","updated_at":"2025-04-08T04:57:47.653Z","avatar_url":"https://github.com/sterlingwes.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Random Color\n\n[![Coverage Status](https://coveralls.io/repos/github/sterlingwes/RandomColor/badge.svg?branch=master)](https://coveralls.io/github/sterlingwes/RandomColor?branch=master)\n\nRandom color is a simple javascript module for generating random colors that contrast enough to distinguish between one another, and are not too loud (by default, all colours can have readable black/dark font overlayed).\n\n[Example](https://cdn.rawgit.com/sterlingwes/RandomColor/5a65e8ff/example/index.html)\n\nUseful, for example, in charts and diagrams where X number of series need to be distinguished by color.\n\n[See changelog](/CHANGELOG.md).\n\n## Getting it\n\n### Node.js\n`npm install rcolor`\n\n### Browser\nClone this repo / copy `dist/rcolor.min.js`\n\n*Note* that the `dist/rcolor.js` file is a CommonJS export (the node.js build)\n\n## Using it\n\nWith the browser build:\n\n```javascript\nwindow.rcolor()\n// \u003e \"#79f2ab\"\n```\n\nWith the node build:\n\n```javascript\nconst rcolor = require('rcolor')\nrcolor() // \"#79f2ab\"\n```\n\nThis module holds the initial random number seed as internal state. To regenerate the random number seed, call the `reSeed` method: `rcolor.reSeed()`.\n\n## Options / Configuration\n\nYou can specify the `hue`, `saturation` and `value`. The following are the defaults:\n\n```javascript\nconst goldenRatio = 0.618 // ... truncated\n\nrcolor({\n  hue: (Math.random() + goldenRatio) % 1,\n  saturation: 0.5,\n  value: 0.95\n})\n```\n\n## Pre-v1.0\n\nIf you used this module prior to NPM availability (between 2013 and 2017), you can find that source (including the Dart version) on the [legacy branch](https://github.com/sterlingwes/RandomColor/tree/legacy).\n\n## License\n\nFree to use and distribute under the MIT license.\n\n## Sorry, Colour\n\nApologies in advance to my commonwealth friends, if you find 'color' vs. 'colour'. It was a hard decision for a Canadian. :)\n\nWes Johnson\n[@SterlingWes](http://twitter.com/SterlingWes)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsterlingwes%2Frandomcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsterlingwes%2Frandomcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsterlingwes%2Frandomcolor/lists"}