Fix GenImageGradientSquare and add to textures_image_generation example
This commit is contained in:
parent
534adbe7ce
commit
42156ffd76
1 changed files with 363 additions and 288 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,20 @@ return {
|
|||
{type = "Color", name = "outer"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GenImageGradientSquare",
|
||||
description = "Generate image: square gradient",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "int", name = "width"},
|
||||
{type = "int", name = "height"},
|
||||
{type = "int", name = "gradientWidth"},
|
||||
{type = "int", name = "gradientHeight"},
|
||||
{type = "float", name = "density"},
|
||||
{type = "Color", name = "inner"},
|
||||
{type = "Color", name = "outer"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GenImageChecked",
|
||||
description = "Generate image: checked",
|
||||
|
|
|
|||
Loading…
Reference in a new issue