# UIGraphicsComponent.rect [← UIGraphicsComponent](index.md) · [← Master](../../wiki.md) rect(int color) Graphic Draw a solid colored rectangle. --- rect(int x, int y, int w, int h, int color) Graphic Draw a solid colored rectangle relative to graphics component's frame. UIGraphicsComponent removeAll() void serializeNBT(NBTTagCompound tag)