# UIGraphicsComponent.icon [← UIGraphicsComponent](index.md) · [← Master](../../wiki.md) icon(java.lang.String icon, int x, int y, int color) Graphic Draw a McLib icon relative to graphics component's frame. --- icon(java.lang.String icon, int x, int y, int color, float anchorX, float anchorY) Graphic Draw a McLib icon with an anchor relative to graphics component's frame.