{"id":13481604,"url":"https://github.com/petulla/d3-hsluv","last_synced_at":"2025-04-21T03:32:34.567Z","repository":{"id":147695565,"uuid":"115148097","full_name":"petulla/d3-hsluv","owner":"petulla","description":"D3 implementation of human-friendly HSL","archived":false,"fork":false,"pushed_at":"2018-08-06T21:13:56.000Z","size":52,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-01T09:12:22.354Z","etag":null,"topics":["color","color-palette","d3","hsluv","rgb"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/petulla.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-12-22T20:29:09.000Z","updated_at":"2024-03-20T20:54:54.000Z","dependencies_parsed_at":"2023-06-27T16:32:34.926Z","dependency_job_id":null,"html_url":"https://github.com/petulla/d3-hsluv","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Fd3-hsluv","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Fd3-hsluv/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Fd3-hsluv/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/petulla%2Fd3-hsluv/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/petulla","download_url":"https://codeload.github.com/petulla/d3-hsluv/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249991172,"owners_count":21357216,"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","color-palette","d3","hsluv","rgb"],"created_at":"2024-07-31T17:00:53.275Z","updated_at":"2025-04-21T03:32:34.282Z","avatar_url":"https://github.com/petulla.png","language":"JavaScript","funding_links":[],"categories":["Utils"],"sub_categories":[],"readme":"# d3-hsluv\n\nThis module implements the [HSLuv](http://www.hsluv.org/) (Hue, Saturation, Lightness) color space.\n\n\n## Installing\n\nIf you use NPM, `npm install d3-hsluv`. AMD, CommonJS, and vanilla environments are supported. In vanilla, a `d3` global is exported:\n\n```html\n\u003cscript src=\"https://d3js.org/d3-color.v1.min.js\"\u003e\u003c/script\u003e\n\u003cscript\u003e\n\nvar yellow = d3.hsluv(\"yellow\"); // {l: 85.9, u: 100, v: 97.1, opacity: 1}\n\n\u003c/script\u003e\n```\n\n[Try d3-hsluv in your browser.](https://tonicdev.com/npm/d3-hsluv)\n\n## API Reference\n\n\u003ca name=\"hsluv\" href=\"#hsluv\"\u003e#\u003c/a\u003e d3.\u003cb\u003ehsluv\u003c/b\u003e(\u003ci\u003el\u003c/i\u003e, \u003ci\u003eu\u003c/i\u003e, \u003ci\u003ev\u003c/i\u003e[, \u003ci\u003eopacity\u003c/i\u003e])\u003cbr\u003e\n\u003ca href=\"#hsluv\"\u003e#\u003c/a\u003e d3.\u003cb\u003ehsluv\u003c/b\u003e(\u003ci\u003especifier\u003c/i\u003e)\u003cbr\u003e\n\u003ca href=\"#hsluv\"\u003e#\u003c/a\u003e d3.\u003cb\u003ehsluv\u003c/b\u003e(\u003ci\u003ecolor\u003c/i\u003e)\u003cbr\u003e\n\nConstructs a new [hsluv](http://www.hsluv.org/) color. The channel values are exposed as `l`, `u` and `v` properties on the returned instance.\n\nIf *l*, *u* and *v* are specified, these represent the channel values of the returned color; an *opacity* may also be specified. If a CSS Color Module Level 3 *specifier* string is specified, it is parsed and then converted to the hsluv color space. See [d3.color](https://github.com/d3/d3-color#color) for examples. If a [*color*](https://github.com/d3/d3-color#color) instance is specified, it is converted to the RGB color space using [*color*.rgb](https://github.com/d3/d3-color#color_rgb) and then converted to hsluv.\n\n\u003ca href=\"#interpolateHsluv\"\u003e#\u003c/a\u003e d3.\u003cb\u003einterpolateHsluv\u003c/b\u003e(\u003ci\u003ea\u003c/i\u003e, \u003ci\u003eb\u003c/i\u003e) [\u003c\u003e](https://github.com/d3/d3-hsluv/blob/master/src/interpolateHsluv.js \"Source\")\u003cbr\u003e\n\nReturns an HSLuv color space interpolator between the two colors a and b. The colors a and b need not be in HSLuv; they will be converted to HSLuv using d3.hsluv. If either color’s hue or chroma is NaN, the opposing color’s channel value is used. The shortest path between hues is used. The return value of the interpolator is an RGB string.\n\n\u003ca href=\"#interpolateHsluvLong\"\u003e#\u003c/a\u003e d3.\u003cb\u003einterpolateHsluvLong\u003c/b\u003e(\u003ci\u003ea\u003c/i\u003e, \u003ci\u003eb\u003c/i\u003e) [\u003c\u003e](https://github.com/d3/d3-hsluv/blob/master/src/interpolateHsluv.js \"Source\")\u003cbr\u003e\n\nLike interpolateHsluv, but does not use the shortest path between hues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetulla%2Fd3-hsluv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpetulla%2Fd3-hsluv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpetulla%2Fd3-hsluv/lists"}