Creates a new ImageGenerationTemplate instance.
new ImageGenerationTemplate([width], [height])
The height of the template
The steps to apply to the canvas.
The width of the template
Adds a step to the template.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| step | The step to add |
Adds steps to the template.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| steps | The steps to add |
Clears the steps.
Returns whether the template is a gif.
Returns whether the size is inferrable.
Sets the gif options.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| options | EncoderOptions | The gif options |
Sets the steps. This will overwrite any existing steps.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| steps | The steps to set |
Returns the JSON representation of the template.
Creates a new ImageGenerationTemplate instance from a template.
| Parameter | Type | Description | Optional |
|---|---|---|---|
| template | The template to use |
The created template
/docs/canvacord/class/ImageGenerationTemplate