knitting_image: Creation of knitting image

Description Usage Arguments Value Examples

View source: R/knitting_image.R

Description

Creation of knitting image

Usage

1
knitting_image(img, gs)

Arguments

img

Magick image

gs

Grid size calculated from grid_size()

Value

Knitting image

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
tricot::knitting_image(
  tricot::image_load(
    here::here("img", "Montagne.pdf")
    ), 
  tricot::grid_size(
    20, 
    30, 
    tricot::square_size(
      35,
      26
    )
    )
  )

tricot::knitting_image(
  tricot::image_load(
    here::here("img", "Monstre.tif")
    ), 
  tricot::grid_size(
    30, 
    30, 
    tricot::square_size(
      35,
      26
    )
    )
  )

tricot::knitting_image(
  tricot::image_load(
    here::here("img", "Pingouin.png")
    ), 
  tricot::grid_size(
    20, 
    20, 
    tricot::square_size(
      35,
      26
    )
    )
  )

tricot::knitting_image(
  tricot::image_load(
    here::here("img", "PeintureLaetitia.jpg")
    ), 
  tricot::grid_size(
    30, 
    20, 
    tricot::square_size(
      35,
      26
    )
    )
  )

Vaugoyeau/tricot documentation built on Feb. 28, 2021, 12:12 a.m.