internal/graphicscommand/command.go
func (c *newImageCommand) Exec(indexOffset int) error {
	i, err := theGraphicsDriver.NewImage(c.width, c.height)
	if err != nil {
		return err
	}
	c.result.image = i
	return nil
}
func (c *newImageCommand) Exec(indexOffset int) error {
	i, err := theGraphicsDriver.NewImage(c.width, c.height)
	if err != nil {
		return err
	}
	c.result.image = i
	return nil
}
func ( c * newImageCommand ) Exec ( indexOffset int ) error { i , err := theGraphicsDriver . NewImage ( c . width , c . height ) if err != nil { return err } c . result . image = i return nil }
// Exec executes a newImageCommand.
Exec executes a newImageCommand .