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