mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-07 11:58:13 +00:00
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:
@@ -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",
|
||||
|
Reference in New Issue
Block a user