{"id":15063561,"url":"https://github.com/dcrck/ultraviolet","last_synced_at":"2026-02-23T19:03:47.657Z","repository":{"id":255436528,"uuid":"849755867","full_name":"dcrck/ultraviolet","owner":"dcrck","description":"Elixir color manipulation library (GitHub mirror)","archived":false,"fork":false,"pushed_at":"2024-12-30T23:35:12.000Z","size":112,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T10:04:04.818Z","etag":null,"topics":["color-conversion","color-manipulation","colors","elixir","elixir-lang","elixir-library","manipulate-colors"],"latest_commit_sha":null,"homepage":"https://codeberg.org/meerific/uv","language":"Elixir","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/dcrck.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-30T07:24:31.000Z","updated_at":"2025-01-29T15:11:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"59f47533-827f-4427-923d-536a06dbc1a1","html_url":"https://github.com/dcrck/ultraviolet","commit_stats":null,"previous_names":["dcrck/ultraviolet"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcrck%2Fultraviolet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcrck%2Fultraviolet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcrck%2Fultraviolet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcrck%2Fultraviolet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcrck","download_url":"https://codeload.github.com/dcrck/ultraviolet/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248208563,"owners_count":21065202,"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-conversion","color-manipulation","colors","elixir","elixir-lang","elixir-library","manipulate-colors"],"created_at":"2024-09-25T00:04:31.895Z","updated_at":"2026-02-23T19:03:42.607Z","avatar_url":"https://github.com/dcrck.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ultraviolet\n\n[![hex.pm badge](https://img.shields.io/badge/Package%20on%20hex.pm-informational)](https://hex.pm/packages/ultraviolet)\n[![Documentation badge](https://img.shields.io/badge/Documentation-ff69b4)][docs]\n[![Coverage Status](https://coveralls.io/repos/github/dcrck/ultraviolet/badge.svg?branch=main)](https://coveralls.io/github/dcrck/ultraviolet?branch=main)\n\n[Online Documentation][docs].\n\nAn Elixir color manipulation library designed to work like\n[`chroma-js`](https://github.com/gka/chroma.js). It may not have full parity\nwith `chroma-js`, but it includes most of the common operations and features.\n\n## Quick Start\n\nHere are a few things `Ultraviolet` can do:\n\n- read colors from a wide range of inputs\n- analyze and manipulate colors\n- convert colors into a wide range of formats\n- linear, bezier, and custom interpolation in different color spaces\n\nHere's an example of a simple read / manipulate / output chain\n\n```elixir\n{:ok, color} = Ultraviolet.new(\"pink\")\n\ncolor\n|\u003e Ultraviolet.Color.darken!()\n|\u003e Ultraviolet.Color.saturate!(2)\n|\u003e Ultraviolet.Color.hex()\n#=\u003e \"#ff6d93\"\n```\n\nAside from that, `Ultraviolet` can help you **generate nice colors** using\nvarious methods. These colors can be used, for example, as a color palette for\nmaps or data visualization.\n\n```elixir\n{:ok, scale} = Ultraviolet.scale([\"#fafa6e\", \"#2a4858\"], space: :lch)\ncolors = Ultraviolet.Scale.take(scale, 6)\n```\n\nThere's a lot more to offer; the [documentation][docs] contains more examples\nof how to use `Ultraviolet`.\n\n## Installation\n\nYou can install `ultraviolet` by adding it to your list of dependencies in\n`mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:ultraviolet, \"~\u003e 0.1\"}\n  ]\nend\n```\n\n## License\n\nCopyright 2024 Derek Meer\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the “Software”), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n[docs]: https://hexdocs.pm/ultraviolet\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcrck%2Fultraviolet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcrck%2Fultraviolet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcrck%2Fultraviolet/lists"}