View source: R/scaled_to_colours.R
scaled_to_colours | R Documentation |
Match raw colour channel values to a smaller subset of colours.
image_list |
List output from image_to_scaled(). Contains an element |
method |
Default 'cie94'. The method to use for colour comparison. Either 'euclidean', 'cie1976', 'cie94', 'cie2000', or 'cmc'.
See |
colour_table |
Defaults to |
colour_palette |
Used to supply a character vector of specific DMC colours to use. Can be particularly useful in instances where you already have
many colours available and maintain a list of their DMC codes. Defaults to NULL - in which case all colours are to be used.
Ignored if a |
trans_bg |
If |
dithering |
Improves colour of large, photo-realistic mosaics. |
n_colours |
Optional: Integer representing the maximum number of colours to use. This option selects the |
A list with element Img_lego
containing a data frame of the x- & y-coordinates, R, G, B channels, and mapped colour of each brick (pixel).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.