Package: legocolors 0.4.0

Matthew Leonawicz

legocolors: Official Lego Color Palettes

Provides a dataset containing several color naming conventions established by multiple sources, along with associated color metadata. The package also provides related helper functions for mapping among the different Lego color naming conventions and between Lego colors, hex colors, and 'R' color names, making it easy to convert any color palette to one based on existing Lego colors while keeping as close to the original color palette as possible. The functions use nearest color matching based on Euclidean distance in RGB space. Naming conventions for color mapping include those from 'BrickLink' (<https://www.bricklink.com>), 'The Lego Group' (<https://www.lego.com>), 'LDraw' (<https://www.ldraw.org/>), and 'Peeron' (<http://www.peeron.com/>).

Authors:Matthew Leonawicz [aut, cre]

legocolors_0.4.0.tar.gz
legocolors_0.4.0.zip(r-4.5)legocolors_0.4.0.zip(r-4.4)legocolors_0.4.0.zip(r-4.3)
legocolors_0.4.0.tgz(r-4.4-any)legocolors_0.4.0.tgz(r-4.3-any)
legocolors_0.4.0.tar.gz(r-4.5-noble)legocolors_0.4.0.tar.gz(r-4.4-noble)
legocolors_0.4.0.tgz(r-4.4-emscripten)legocolors_0.4.0.tgz(r-4.3-emscripten)
legocolors.pdf |legocolors.html
legocolors/json (API)
NEWS

# Install 'legocolors' in R:
install.packages('legocolors', repos = c('https://leonawicz.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/leonawicz/legocolors/issues

Datasets:

On CRAN:

color-paletteslego

7 exports 5 stars 1.18 score 0 dependencies 12 scripts 136 downloads

Last updated 6 days agofrom:38020d760e. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 11 2024
R-4.5-winOKSep 11 2024
R-4.5-linuxOKSep 11 2024
R-4.4-winOKSep 11 2024
R-4.4-macOKSep 11 2024
R-4.3-winOKSep 11 2024
R-4.3-macOKSep 11 2024

Exports:hex_to_colorhex_to_legocolorlc_heatlc_terrainlc_topolegocolor_to_hexview_legopal

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Predefined palettes and palette generatorslc_heat lc_palettes lc_terrain lc_topo
Color mappinghex_to_color hex_to_legocolor legocolor legocolor_to_hex view_legopal
legocolors: Official Lego Color Paletteslegocolors-package legocolors
Lego color data.legoCols
Lego color palettes.legoPals