View source: R/create_pattern_from_image.R
create_pattern_from_image | R Documentation |
Transform an image raster array into a cross-stitch pattern
image |
A raster array from an image. |
size_unit |
The unit by which the image will be scaled. Can be one of the following options: 'stitches', 'inches', or 'cm' |
img_size |
Size of the embroidery, in the unit determined by size_unit. Use a single value (e.g. |
cloth_count |
Specify the aida cloth count to work with. Set to 16 by default. |
brightness |
A value >1 will increase the brightness of the image while a positive value <1 will decrease the brightness. |
warhol |
Array of values |
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 DMC colours are to be considered.
Ignored if a |
n_colours |
Optional: Integer representing the maximum number of colours to use. This option selects the |
trans_bg |
If |
dithering |
Improves colour of large, photo-realistic mosaics. |
style |
Options for visualisation. Defaults to a tiled pattern with DMC numbers |
colour_list |
Whether a list of colours should also be output. Defaults to |
file_name |
Option to name the output files. Defaults to |
An SVG file with the cross-stitch pattern. If colour_list
is set to TRUE
,
a second SVG file containing a list of DMC colours used is also output.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.