klyn.gui.images.SvgImage.render
method
public render(painter as Painter, x as Int, y as Int, width as Int, height as Int, tint as Color = null, hovered as Boolean = false, hoverTint as Color = null) as Void:
Description

Renders the SVG into the given painter.

Parameters
ParameterDescription
painterTarget painter.
xDestination x coordinate.
yDestination y coordinate.
widthDestination width.
heightDestination height.
tintColor used for SVG currentColor in normal state.
hoveredTrue when the rendered icon is currently hovered.
hoverTintColor used for SVG currentColor in hover state.
Example
icon.render(painter, 8, 8, 20, 20, Color.parse("#94A3B8"), button.isHovered, Color.white())