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(kvec, which = 1:kvec$nstrokes, simplify = TRUE)
Value
Usually a list of strokes with attributes. Regardless of
whether which is ordered or contains duplicates, the returned list will always contain
the strokes in their natural order without duplicates. If which has length 1 and
simplified = TRUE, the list is avoided, and only the single stroke is returned.
Arguments
kvec
an object of class kanjivec
which
a numeric vector specifying the numbers of the strokes that are to be returned.
Defaults to all strokes.
simplify
logical. Shall only the stroke be returned if which has length 1?