Canvas
Last updated
Last updated
Create a new empty canvas.
width
int
Width of the canvas.
height
int
Height of the canvas.
fillColor
color.Color
Color of the canvas. Optional parameter, default is transparent.
The instance of *imgo.Image
.
package main
import (
"github.com/fishtailstudio/imgo"
"image/color"
)
func main() {
imgo.Canvas(500, 500, color.White).
Save(