create_style¶
-
visualife.core.styles.create_style(**kwargs)¶ Creates a string encoding a style of a SVG element
Style parameters are retrieved from a given kwargs object.
If
"darkeror"lighter"words are used asstroke, a darker or a lighter variant of the fill color will be used as a stroke color. This works only when the fill color has been explicitly specifiedParameters: kwargs ( map) – style parameters; recognized keys are: ‘fill_opacity’, ‘gradient’, ‘fill’, ‘stroke’, ‘stroke_width’, ‘stroke_dasharray’, ‘stroke_linejoin’, ‘stroke_linecap’, ‘text_anchor’, ‘font_weight’, ‘font_family’, ‘font_size’, ‘font_style’, ‘style’, ‘cursor’ and ‘opacity’