{"id":21654630,"url":"https://github.com/localvoid/inkdrop","last_synced_at":"2026-05-11T16:34:35.012Z","repository":{"id":57274087,"uuid":"59760805","full_name":"localvoid/inkdrop","owner":"localvoid","description":"[UNMAINTAINED] Javascript (TypeScript) color manipulation and conversion library","archived":false,"fork":false,"pushed_at":"2016-06-05T09:04:38.000Z","size":63,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-24T10:36:07.217Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/localvoid.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":"2016-05-26T15:18:02.000Z","updated_at":"2018-05-17T13:44:00.000Z","dependencies_parsed_at":"2022-09-17T10:12:54.759Z","dependency_job_id":null,"html_url":"https://github.com/localvoid/inkdrop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/localvoid/inkdrop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Finkdrop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Finkdrop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Finkdrop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Finkdrop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/localvoid","download_url":"https://codeload.github.com/localvoid/inkdrop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/localvoid%2Finkdrop/sbom","scorecard":{"id":596671,"data":{"date":"2025-08-18","repo":{"name":"github.com/localvoid/inkdrop","commit":"4adb1b75a910dfd0e52db5aa1b0bc859c1f4c964"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":2.8,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: npmCommand not pinned by hash: tools/ci/install.sh:8","Warn: npmCommand not pinned by hash: tools/ci/install.sh:12","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-20T23:18:25.295Z","repository_id":57274087,"created_at":"2025-08-20T23:18:25.295Z","updated_at":"2025-08-20T23:18:25.295Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32903449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"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-11-25T08:28:29.861Z","updated_at":"2026-05-11T16:34:34.992Z","avatar_url":"https://github.com/localvoid.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# InkDrop\n\n[![Build status](https://img.shields.io/travis/localvoid/inkdrop.svg?style=flat-square)](https://travis-ci.org/localvoid/inkdrop)\n[![Npm version](https://img.shields.io/npm/v/inkdrop.svg?style=flat-square)](https://www.npmjs.com/package/inkdrop)\n[![Npm downloads](https://img.shields.io/npm/dm/inkdrop.svg?style=flat-square)](https://www.npmjs.com/package/inkdrop)\n[![License](https://img.shields.io/npm/l/inkdrop.svg?style=flat-square)](https://www.npmjs.com/package/inkdrop)\n\nJavascript (TypeScript) color manipulation and conversion library.\n\n## Motivation\n\nThis library doesn't perform any implicit conversions between different color models and implemented in a way so that\njs compilers with dead code elimination could easily remove unused code.\n\n## Installation\n\nNpm package `inkdrop` provides umd modules, es6 modules at `jsnext:main` and TypeScript typings.\n\n```sh\n$ npm install inkdrop\n```\n\n## Color models\n\nAll color models are using values with a range `[0, 1]` for all properties.\n\n- `RgbColor`\n- `HsvColor`\n- `HslColor`\n- `HwbColor`\n- `CmykColor`\n- `XyzColor`\n- `XyyColor`\n- `LabColor`\n- `LchColor`\n\n## Converters\n\n- `rgbLinearize(rgb: RgbColor): RgbColor`\n- `rgbDelinearize(lrgb: RgbColor): RgbColor`\n- `rgbToHsl(rgb: RgbColor): HslColor`\n- `hslToRgb(hsl: HslColor): RgbColor`\n- `rgbToHsv(rgb: RgbColor): HsvColor`\n- `hsvToRgb(hsv: HsvColor): RgbColor`\n- `rgbToHwb(rgb: RgbColor): HwbColor`\n- `hwbToRgb(hwb: HwbColor): RgbColor`\n- `rgbToCmyk(rgb: RgbColor): CmykColor`\n- `cmykToRgb(cmyk: CmykColor): RgbColor`\n- `rgbToHex(rgb: RgbColor): string`\n- `hexToRgb(hex: string): RgbColor`\n- `linearRgbToXyz(lrgb: RgbColor): XyzColor`\n- `xyzToLinearRgb(xyz: XyzColor): RgbColor`\n- `xyzToXyy(xyz: XyzColor): XyyColor`\n- `xyyToXyz(xyy: XyyColor): XyzColor`\n- `xyzToLab(xyz: XyzColor): LabColor`\n- `labToXyz(lab: LabColor): XyzColor`\n- `labToLch(lab: LabColor): LchColor`\n- `lchToLab(lch: LchColor): LabColor`\n- `rgbToLab(rgb: RgbColor): LabColor`\n- `labToRgb(lab: LabColor): RgbColor`\n- `rgbToLch(rgb: RgbColor): LchColor`\n- `lchToRgb(lch: LchColor): RgbColor`\n\n## Utils\n\n- `luminance(rgb: RgbColor): number`\n- `contrast(a: RgbColor, b: RgbColor): number`\n- `contrastLevel(contrastRatio: number): number`\n- `findBestContrast(a: RgbColor, bs: RgbColor[]): RgbColor | undefined`\n- `brightness(rgb: RgbColor): number`\n- `isDark(rgb: RgbColor): boolean`\n- `isLight(rgb: RgbColor): boolean`\n- `labDistanceCIE76(lab: LabColor): number`\n- `labDistanceCIE94(lab: LabColor): number`\n- `isValidRgb(rgb: RgbColor): RgbColor`\n- `clampRgb(rgb: RgbColor): RgbColor`\n\n## Transformation functions\n\n- `absDesaturate(hsl: HslColor, amount = 0.1): HslColor`\n- `absSaturate(hsl: HslColor, amount = 0.1): HslColor`\n- `absLighten(hsl: HslColor, amount = 0.1): HslColor`\n- `absDarken(hsl: HslColor, amount = 0.1): HslColor`\n- `absFadeIn(hsl: HslColor, amount = 0.1): HslColor`\n- `absFadeOut(hsl: HslColor, amount = 0.1): HslColor`\n- `absWhiten(hwb: HwbColor, amount = 0.1): HwbColor`\n- `absBlacken(hwb: HwbColor, amount = 0.1): HwbColor`\n- `relDesaturate(hsl: HslColor, ratio = 0.1): HslColor`\n- `relSaturate(hsl: HslColor, ratio = 0.1): HslColor`\n- `relLighten(hsl: HslColor, ratio = 0.1): HslColor`\n- `relDarken(hsl: HslColor, ratio = 0.1): HslColor`\n- `relFadeIn(hsl: HslColor, ratio = 0.1): HslColor`\n- `relFadeOut(hsl: HslColor, ratio = 0.1): HslColor`\n- `relWhiten(hwb: HwbColor, ratio = 0.1): HwbColor`\n- `relBlacken(hwb: HwbColor, ratio = 0.1): HwbColor`\n- `spin(hsl: HslColor, amount: number): HslColor`\n- `mix(a: RgbColor, b: RgbColor, amount = 0.5): RgbColor`\n- `tint(rgb: RgbColor, amount = 0.5): RgbColor`\n- `shade(rgb: RgbColor, amount = 0.5): RgbColor`\n- `negate(rgb: RgbColor): RgbColor`\n- `greyscale(rgb: RgbColor): RgbColor`\n\n## Blend functions\n\n- `blend(c1: RgbColor, c2: RgbColor, mode: (a: number, b: number) =\u003e number): RgbColor`\n- `blendMultiply(a: RgbColor, b: RgbColor): RgbColor`\n- `blendScreen(a: RgbColor, b: RgbColor): RgbColor`\n- `blendOverlay(a: RgbColor, b: RgbColor): RgbColor`\n- `blendSoftlight(a: RgbColor, b: RgbColor): RgbColor`\n- `blendHardlight(a: RgbColor, b: RgbColor): RgbColor`\n- `blendDifference(a: RgbColor, b: RgbColor): RgbColor`\n- `blendExclusion(a: RgbColor, b: RgbColor): RgbColor`\n- `blendAverage(a: RgbColor, b: RgbColor): RgbColor`\n- `blendNegation(a: RgbColor, b: RgbColor): RgbColor`\n\n## Combination functions\n\n- `complement(hsl: HslColor): HslColor`\n- `triad(hsl: HslColor): [HslColor, HslColor, HslColor]`\n- `tetrad(hsl: HslColor): [HslColor, HslColor, HslColor, HslColor]`\n- `splitComplement(hsl: HslColor): [HslColor, HslColor, HslColor]`\n- `analogous(hsl: HslColor, results = 6, slices = 30): HslColor[]`\n- `monochromatic(hsv: HsvColor, results = 6): HsvColor[]`\n\n## Text formatting functions\n\n- `formatRgbToHex(rgb: RgbColor): string`\n- `formatRgbToString(rgb: RgbColor): string`\n- `formatHslToString(hsl: HslColor): string`\n- `formatHsvToString(hsv: HsvColor): string`\n\n## Text parsing functions\n\n- `parseHex(hex: string): RgbColor`\n\n## Compare functions\n\n```txt\nEpsilon:\n\nalpha = 1 / 100\nrgb colors = 1 / 255\nhue = 1 / 360\nsaturation, lightness, value, whiteness, blackness, cyan, magenta, yellow, black = 1 / 100\n```\n\n- `almostEqualRgb(a: RgbColor, b: RgbColor): boolean`\n- `almostEqualHsl(a: HslColor, b: HslColor): boolean`\n- `almostEqualHsv(a: HsvColor, b: HsvColor): boolean`\n- `almostEqualHwb(a: HwbColor, b: HwbColor): boolean`\n- `almostEqualCmyk(a: CmykColor, b: CmykColor): boolean`\n- `almostEqualXyz(a: XyzColor, b: XyzColor): boolean`\n- `almostEqualXyy(a: XyyColor, b: XyyColor): boolean`\n- `almostEqualLab(a: LabColor, b: LabColor): boolean`\n- `almostEqualLch(a: LchColor, b: LchColor): boolean`\n\n## Colors\n\n- `WhiteD65Color`\n- `WhiteD50Color`\n- `WhiteRgbColor`\n- `BlackRgbColor`\n- `randomWarmColor(): LchColor`\n- `randomHappyColor(): LchColor`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Finkdrop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocalvoid%2Finkdrop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocalvoid%2Finkdrop/lists"}