Calculates intermediates forms between two shapes

cross(..., ratio = 0.5, steps)

Arguments

...

two shapes, or a cool or a list of shapes. Only the first two will be crossed. In all cases, they need to be homogeneized.

ratio

numeric (one or more) (min=0, max=1, default=0.5): how much of the first shape?

steps

integer if provided will use ratio=seq(0, 1, length.out=steps)

Value

a cool

Examples

s <- shapes %>% pick(1:2) %>% homogeneize() cross(s)
#> 1 coo with 60 +/- NA coordinates
s %>% cross(steps=100)
#> 100 coo with 60 +/- 0 coordinates
s %>% cross(steps=20) %>% paper_white %>% draw_outlines()