Description Usage Arguments Value
View source: R/draw_static_hanzi.R
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
1 | draw_static_hanzi(hanzi, width, align, background_color)
|
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) |
HTML+CSS code to generate stroke animation of specified Chinese character
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.