draw_static_hanzi: Show static image of stroke order of Chinese character

Description Usage Arguments Value

View source: R/draw_static_hanzi.R

Description

This function generates the injectable HTML+CSS code to show a static image of the stroke order of the specified Chinese character. If preparing a markdown document in RStudio, set code chunk arguments as follows: results='asis', message=F

Usage

1
draw_static_hanzi(hanzi, width, align, background_color)

Arguments

hanzi

A required character string of one Chinese character (e.g., "你"); no default

width

A character string for width of figure (e.g., "50%" or "50px"); defaults to "100%"

align

A character string for alignment of figure (i.e., "center" or "left"); defaults to "center"

background_color

A character string for figure color in CSS format (i.e., color name, HEX value, RGB value, or RGBA value)

Value

HTML+CSS code to generate stroke animation of specified Chinese character


evancollins1/hanziR documentation built on Dec. 20, 2021, 6:46 a.m.