> For the complete documentation index, see [llms.txt](https://imgo.gitbook.io/en/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://imgo.gitbook.io/en/api/mosaic.md).

# Mosaic

Mosaic the image.

## Parameters

<table><thead><tr><th>Parameter</th><th width="208.18338610093963">Type</th><th>Description</th></tr></thead><tbody><tr><td>size</td><td><code>int</code></td><td>Size of mosaic pixels.</td></tr><tr><td>x1</td><td><code>int</code></td><td>X-Coordinate of the top-left corner of the mosaic rectangular.</td></tr><tr><td>y1</td><td><code>int</code></td><td>Y-Coordinate of the top-left corner of the mosaic rectangular.</td></tr><tr><td>x2</td><td><code>int</code></td><td>X-Coordinate of the bottom-right corner of the mosaic rectangular.</td></tr><tr><td>y2</td><td><code>int</code></td><td>Y-Coordinate of the bottom-right corner of the mosaic rectangular.</td></tr></tbody></table>

## Return Values

The instance of `*imgo.Image` .

## Examples

```go
package main

import "awesomeProject/imgo"

func main() {
    imgo.Load("gopher.png").
        Mosaic(5, 60, 50, 120, 100).
        Save("out.png")
}
```
