These functions are analogs to familiar R color palettes but based on Lego colors.
lc_terrain(n) lc_topo(n) lc_heat(n)
n | if not provided, return the vector of official Lego colors defining
the palette. If provided, return an interpolated palette, which will contain
non-Lego colors only if |
---|
character vector of hex colors
lc_terrain()#> [1] "#00451A" "#00852B" "#8B844F" "#708E7C" "#A5CA18" "#FAC80A" "#91501C" #> [8] "#5F3109" "#897D62" "#CCB98D" "#F4F4F4"lc_terrain(4)#> [1] "#00451A" "#708E7C" "#5F3109" "#F4F4F4"lc_topo()#> [1] "#CCB98D" "#FAC80A" "#A5CA18" "#7396C8" "#19325A"lc_heat()#> [1] "#F4F4F4" "#FAC80A" "#D67923" "#B40000" "#720012"