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

Parameter | Description
--- | ---
`painter` | Target painter.
`x` | Destination x coordinate.
`y` | Destination y coordinate.
`width` | Destination width.
`height` | Destination height.
`tint` | Color used for SVG `currentColor` in normal state.
`hovered` | True when the rendered icon is currently hovered.
`hoverTint` | Color used for SVG `currentColor` in hover state.

Example

    icon.render(painter, 8, 8, 20, 20, Color.parse("#94A3B8"), button.isHovered, Color.white())