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:
Renders the SVG into the given painter.
| 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. |
icon.render(painter, 8, 8, 20, 20, Color.parse("#94A3B8"), button.isHovered, Color.white())