{"id":13857710,"url":"https://github.com/EmilHvitfeldt/prismatic","last_synced_at":"2025-07-13T22:31:01.041Z","repository":{"id":56934495,"uuid":"205078698","full_name":"EmilHvitfeldt/prismatic","owner":"EmilHvitfeldt","description":"color manipulation R package Simply and Tidy","archived":false,"fork":false,"pushed_at":"2024-11-18T19:43:12.000Z","size":5929,"stargazers_count":138,"open_issues_count":2,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-07-08T03:52:54.251Z","etag":null,"topics":["color","color-manipulation","colour","r","rstats"],"latest_commit_sha":null,"homepage":"https://emilhvitfeldt.github.io/prismatic/","language":"R","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/EmilHvitfeldt.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2019-08-29T04:14:04.000Z","updated_at":"2024-11-18T19:39:05.000Z","dependencies_parsed_at":"2024-12-21T16:06:15.389Z","dependency_job_id":"c6bb0939-330f-4b7d-a00d-0396959265e5","html_url":"https://github.com/EmilHvitfeldt/prismatic","commit_stats":{"total_commits":116,"total_committers":5,"mean_commits":23.2,"dds":0.09482758620689657,"last_synced_commit":"981919c2d1b170dfd93abc03d787bf9ab874780d"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/EmilHvitfeldt/prismatic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fprismatic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fprismatic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fprismatic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fprismatic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EmilHvitfeldt","download_url":"https://codeload.github.com/EmilHvitfeldt/prismatic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EmilHvitfeldt%2Fprismatic/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265218200,"owners_count":23729496,"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-manipulation","colour","r","rstats"],"created_at":"2024-08-05T03:01:44.793Z","updated_at":"2025-07-13T22:31:00.753Z","avatar_url":"https://github.com/EmilHvitfeldt.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"---\noutput: github_document\n---\n\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\n```{r opts, include = FALSE}\nknitr::opts_chunk$set(\n  collapse = TRUE,\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/README-\",\n  out.width = \"100%\"\n)\n```\n\n# prismatic \u003cimg src='man/figures/logo.png' height=\"139\" style=\"float:right\" /\u003e\n\n\u003c!-- badges: start --\u003e\n[![R-CMD-check](https://github.com/EmilHvitfeldt/prismatic/workflows/R-CMD-check/badge.svg)](https://github.com/EmilHvitfeldt/prismatic/actions)\n[![Codecov test coverage](https://codecov.io/gh/EmilHvitfeldt/prismatic/branch/main/graph/badge.svg)](https://app.codecov.io/gh/EmilHvitfeldt/prismatic?branch=main)\n[![CRAN status](http://www.r-pkg.org/badges/version/prismatic)](https://CRAN.R-project.org/package=prismatic)\n[![Downloads](http://cranlogs.r-pkg.org/badges/prismatic)](https://CRAN.R-project.org/package=prismatic)\n[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html)\n[![DOI](https://zenodo.org/badge/205078698.svg)](https://zenodo.org/record/4420786)\n\u003c!-- badges: end --\u003e\n\nThe goal of prismatic is to provide color manipulation tools in R, in an intuitive, low-dependency and functional way.\n\n- **intuitive** All the working functions are prefixed with `clr_` (**c**o**l**o**r**) allowing for easy autocompletion.\n- **low-dependency** Only depends on [farver](https://github.com/thomasp85/farver).\n- **functional** All functions have consistent inputs and outputs and are thus fully pipeable.\n\n## Installation\n\nYou can install the released version of prismatic from [CRAN](https://CRAN.R-project.org) with:\n\n``` r\ninstall.packages(\"prismatic\")\n```\n\nAnd the development version from [GitHub](https://github.com/) with:\n\n``` r\n# install.packages(\"devtools\")\ndevtools::install_github(\"EmilHvitfeldt/prismatic\")\n```\n## Examples\n\nAll **prismatic** function return a `colors` object, which includes a new printing method and plotting method for quickly visualizing the colors.\n\n```{r terraincols, dpi=320}\nlibrary(prismatic)\n\nterrain10 \u003c- terrain.colors(10)\n\nterrain10\n\nterrain_color \u003c- color(terrain10)\n\nterrain_color\n\nplot(terrain_color)\n```\n\nIf [cli](https://github.com/r-lib/cli) is available the print method will do its best to represent the colors.\n\n![](man/figures/sceenshot.png)\n\n```{r plotcols, dpi=320}\nddd \u003c- color(terrain.colors(10))\nddd\n\nplot(ddd)\nclr_grayscale(ddd) |\u003e plot()\nclr_lighten(ddd, 0.7) |\u003e plot()\nclr_darken(ddd, 0.5) |\u003e plot()\nclr_saturate(ddd, 0.5) |\u003e plot()\nclr_desaturate(ddd, 0.5) |\u003e plot()\nclr_negate(ddd) |\u003e plot()\nclr_rotate(ddd, 180) |\u003e plot()\n\nclr_protan(ddd) |\u003e plot()\nclr_tritan(ddd) |\u003e plot()\nclr_deutan(ddd) |\u003e plot()\n```\n\n## Related work\n\nThis package is hugely inspired by the JavaScript library [Qix-/color](https://github.com/Qix-/color).\n\n## Code of Conduct\n\nPlease note that the **prismatic** project is released with a [Contributor Code of Conduct](https://github.com/EmilHvitfeldt/prismatic/blob/main/CODE_OF_CONDUCT.md). By contributing to this project, you agree to abide by its terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEmilHvitfeldt%2Fprismatic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEmilHvitfeldt%2Fprismatic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEmilHvitfeldt%2Fprismatic/lists"}