realtime
Veejay is a visual instrument and realtime video sampler (for live video improvisation)
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (16.5%) to scientific vocabulary
Last synced: 10 months ago
·
JSON representation
·
Repository
Veejay is a visual instrument and realtime video sampler (for live video improvisation)
Basic Info
- Host: GitHub
- Owner: WilidfireHunter
- License: other
- Language: R
- Default Branch: main
- Size: 2.3 MB
Statistics
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
- Releases: 0
Created 11 months ago
· Last pushed 11 months ago
Metadata Files
Readme
Changelog
License
Citation
README.Rmd
---
output: github_document
always_allow_html: true
---
```{r, include = FALSE, cache = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%",
cache = FALSE,
asciicast_theme = "pkgdown"
)
asciicast::init_knitr_engine(
startup = quote({
library(tibble)
library(palettes)
set.seed(1) }),
echo = TRUE,
echo_input = FALSE
)
```
# palettes
[](https://github.com/mccarthy-m-g/palettes/actions/workflows/R-CMD-check.yaml)
[](https://app.codecov.io/gh/mccarthy-m-g/palettes)
[](https://CRAN.R-project.org/package=palettes)
[](https://mccarthy-m-g.r-universe.dev/palettes)
[](https://cran.r-project.org/package=palettes)
palettes is an R package for working with colour vectors and colour palettes. There are three main goals to the palettes package, each described in a vignette:
- To provide a new family of colour classes (`palettes_colour` and `palettes_palette`) that always print as hex codes with colour previews; `vignette("palettes")`.
- To provide a comprehensive library of methods for working with colour vectors and colour palettes, including methods for ggplot2, `vignette("ggplot2")`; gt, `vignette("gt")`; biscale, `vignette("biscale")`; and other colour packages, `vignette("compatibility")`.
- To make it easy for anyone to make their own colour palette package; `vignette("creating-packages")`. Colour palette packages made with palettes exist solely for the purpose of distributing colour palettes and get access to all the features of palettes for free.
## Installation
Install palettes from [CRAN](https://CRAN.R-project.org/package=palettes) with:
```r
install.packages("palettes")
```
Install the development version from [GitHub](https://github.com/mccarthy-m-g/palettes) or [R-universe](https://mccarthy-m-g.r-universe.dev/palettes) with:
```r
# Install from GitHub
# install.packages("remotes")
remotes::install_github("mccarthy-m-g/palettes")
# Install from R-universe
install.packages("palettes", repos = "https://mccarthy-m-g.r-universe.dev")
```
Install the [WebAssembly](https://webassembly.org) version for use in [WebR](https://docs.r-wasm.org/webr/latest/) applications with:
```r
# Install CRAN version from r-wasm
install.packages("palettes", repos = "https://repo.r-wasm.org")
# Install development version from R-universe
install.packages(
"palettes",
repos = c("https://mccarthy-m-g.r-universe.dev", "https://repo.r-wasm.org")
)
```
## Usage
```{r}
library(palettes)
```
Colours can be specified by name (as listed by `grDevices::colours()`):
```{asciicast pal-colour-character}
pal_colour("red")
```
Or by hex code:
```{asciicast pal-colour-hex}
pal_colour("#FF0000")
```
Multiple colours can be specified at once as a character vector:
```{asciicast pal-colour-vector}
pal_colour(c("#a00e00", "#d04e00", "#f6c200", "#0086a8", "#132b69"))
```
Named colour palettes can be specified in the same way:
```{asciicast pal-palette}
pal_palette(
egypt = c("#dd5129", "#0f7ba2", "#43b284", "#fab255"),
java = c("#663171", "#cf3a36", "#ea7428", "#e2998a", "#0c7156")
)
```
Colours also print nicely in tibbles:
```{asciicast tibble}
as_tibble(pal_colour(c("#dd5129", "#0f7ba2", "#43b284", "#fab255")))
```
## Documentation
See at [`https://mccarthy-m-g.github.io/palettes/`](https://mccarthy-m-g.github.io/palettes/reference/index.html) and also in the installed package: `help(package = "palettes")`.
## License
MIT © Michael McCarthy
Owner
- Login: WilidfireHunter
- Kind: user
- Repositories: 1
- Profile: https://github.com/WilidfireHunter
Citation (CITATION.cff)
cff-version: 1.2.0 message: 'To cite package "palettes" in publications use:' type: software license: MIT title: 'palettes: Methods for Colour Vectors and Colour Palettes' abstract: 'Provides a comprehensive library for colour vectors and colour palettes using a new family of colour classes (palettes_colour and palettes_palette) that always print as hex codes with colour previews. Capabilities include: formatting, casting and coercion, extraction and updating of components, plotting, colour mixing arithmetic, and colour interpolation.' authors: - family-names: McCarthy given-names: Michael repository: https://CRAN.R-project.org/package=palettes repository-code: https://github.com/mccarthy-m-g/palettes url: https://mccarthy-m-g.github.io/palettes/ version: 0.1.1 date-released: 2023-01-12
GitHub Events
Total
- Create event: 2
Last Year
- Create event: 2
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v4 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.5.0 composite
- actions/checkout v4 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v4 composite
- actions/upload-artifact v4 composite
- codecov/codecov-action v5 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- R >= 2.10 depends
- cli * imports
- farver >= 2.0.3 imports
- ggplot2 >= 3.5.0 imports
- methods * imports
- pillar * imports
- prismatic * imports
- purrr * imports
- rlang >= 1.0.0 imports
- scales * imports
- tibble * imports
- vctrs * imports
- MetBrewer * suggests
- PNWColors * suggests
- biscale * suggests
- colorspace * suggests
- covr * suggests
- dplyr * suggests
- grDevices * suggests
- gt >= 0.9.0 suggests
- knitr >= 1.22 suggests
- nord * suggests
- patchwork * suggests
- pkgdown * suggests
- rmarkdown >= 2.20 suggests
- sf * suggests
- testthat >= 3.0.0 suggests
- viridisLite * suggests
- withr * suggests