cross: Cross shapes

Description Usage Arguments Value Examples

View source: R/cross.R

Description

Calculates intermediates forms between two shapes

Usage

1
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

1
2
3
4
s <- shapes %>% pick(1:2) %>% homogeneize()
cross(s)
s %>% cross(steps=100)
s %>% cross(steps=20) %>% paper_white %>% draw_outlines()

MomX/Momfarm documentation built on April 4, 2020, 6:18 p.m.