Find the closest DMC embroidery floss for a given colour

dmc(colour, n = 1, visualize = TRUE, method = c("euclidean",
  "cie1976", "cie94", "cie2000", "cmc"))

Arguments

colour

A hex code to identify the colour, e.g. "#EE8726"

n

Number of DMC floss colours to return. Defaults to 1.

visualize

Whether to visualize colour versus the closest DMC floss colour(s). Defaults to TRUE.

method

Method for comparing colours. Defaults to "euclidean".

Examples

dmc("#EE8726")
#> # A tibble: 1 x 6 #> dmc name hex red green blue #> <chr> <chr> <chr> <dbl> <dbl> <dbl> #> 1 970 Pumpkin - Light #F78B13 247 139 19
dmc("#EE8726", n = 5)
#> # A tibble: 5 x 6 #> dmc name hex red green blue #> <chr> <chr> <chr> <dbl> <dbl> <dbl> #> 1 970 Pumpkin - Light #F78B13 247 139 19 #> 2 922 Copper - Light #E27323 226 115 35 #> 3 721 Orange Spice - Medium #F27842 242 120 66 #> 4 741 Tangerine - Medium #FFA32B 255 163 43 #> 5 783 Topaz - Medium #CE9124 206 145 36
dmc("#EE8726", n = 5, method = "cie94")
#> # A tibble: 5 x 6 #> dmc name hex red green blue #> <chr> <chr> <chr> <dbl> <dbl> <dbl> #> 1 971 Pumpkin #F67F00 246 127 0 #> 2 970 Pumpkin - Light #F78B13 247 139 19 #> 3 740 Tangerine #FF8B00 255 139 0 #> 4 3853 Autumn Gold - Dark #F29746 242 151 70 #> 5 922 Copper - Light #E27323 226 115 35
dmc("#EE8726", visualize = FALSE)
#> # A tibble: 1 x 6 #> dmc name hex red green blue #> <chr> <chr> <chr> <dbl> <dbl> <dbl> #> 1 970 Pumpkin - Light #F78B13 247 139 19