Get the strokes of a specific component of a kanjivec object
Source:R/kanjivec.R
get_strokes_compo.Rd
The strokes are the leaves of the kanjivec stroketree
. They consist of
a two-column matrix giving a discretized path for the stroke in the unit square \([0,1]^2\)
with further attributes.
Usage
get_strokes_compo(kvec, which = c(1, 1))
Arguments
- kvec
an object of class
kanjivec
- which
a vector of length 2 specifing the index of the component, i.e. the component used is
pluck(kvec$components, !!!which)
. The defaultc(1,1)
refers to the root component (full kanji), so all strokes are returned.