Add GenImageGradientSquare (#3077)
* Add GenImageGradientSquare to allow square gradients * Fix GenImageGradientSquare and add to textures_image_generation example * Remove params from GenImageGradientSquare
This commit is contained in:
parent
84ae26cdc0
commit
a4a6d4da8a
10 changed files with 407 additions and 282 deletions
|
@ -4997,7 +4997,7 @@ return {
|
|||
},
|
||||
{
|
||||
name = "GenImageGradientLinear",
|
||||
description = "Generate image: linear gradient",
|
||||
description = "Generate image: linear gradient, direction in degrees [0..360], 0=Vertical gradient",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "int", name = "width"},
|
||||
|
@ -5019,6 +5019,18 @@ return {
|
|||
{type = "Color", name = "outer"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GenImageGradientSquare",
|
||||
description = "Generate image: square gradient",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "int", name = "width"},
|
||||
{type = "int", name = "height"},
|
||||
{type = "float", name = "density"},
|
||||
{type = "Color", name = "inner"},
|
||||
{type = "Color", name = "outer"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GenImageChecked",
|
||||
description = "Generate image: checked",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue