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' (<>), 'The Lego Group' (<>), 'LDraw' (<>), and 'Peeron' (<>).

Version: 0.3.1
Depends: R (≥ 2.10)
Suggests: testthat, covr
Published: 2021-02-20
Author: Matthew Leonawicz [aut, cre]
Maintainer: Matthew Leonawicz <mfleonawicz at>
License: MIT + file LICENSE
NeedsCompilation: no
Language: en-US
Materials: README NEWS
CRAN checks: legocolors results


Reference manual: legocolors.pdf
Package source: legocolors_0.3.1.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release: legocolors_0.3.1.tgz, r-oldrel: legocolors_0.2.0.tgz
Old sources: legocolors archive


Please use the canonical form to link to this page.