Combine all GenImageXNoise functions into one function (GenImageNoise)
This commit is contained in:
parent
36bf4372b8
commit
5ad0fdbc05
1 changed files with 599 additions and 413 deletions
|
|
@ -15,7 +15,7 @@ return {
|
|||
{
|
||||
name = "RAYLIB_VERSION_MINOR",
|
||||
type = "INT",
|
||||
value = 5,
|
||||
value = 6,
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
|
|
@ -27,7 +27,7 @@ return {
|
|||
{
|
||||
name = "RAYLIB_VERSION",
|
||||
type = "STRING",
|
||||
value = "4.5",
|
||||
value = "4.6-dev",
|
||||
description = ""
|
||||
},
|
||||
{
|
||||
|
|
@ -1032,6 +1032,11 @@ return {
|
|||
type = "Transform **",
|
||||
name = "framePoses",
|
||||
description = "Poses array by frame"
|
||||
},
|
||||
{
|
||||
type = "char[32]",
|
||||
name = "name",
|
||||
description = "Animation name"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
@ -2545,6 +2550,63 @@ return {
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "NoiseType",
|
||||
description = "Noise types",
|
||||
values = {
|
||||
{
|
||||
name = "NOISE_VALUE",
|
||||
value = 0,
|
||||
description = "Value noise"
|
||||
},
|
||||
{
|
||||
name = "NOISE_WHITE",
|
||||
value = 1,
|
||||
description = "White noise"
|
||||
},
|
||||
{
|
||||
name = "NOISE_PERLIN",
|
||||
value = 2,
|
||||
description = "Perlin noise"
|
||||
},
|
||||
{
|
||||
name = "NOISE_LAYERED_PERLIN",
|
||||
value = 3,
|
||||
description = "Layered perlin noise"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GradientType",
|
||||
description = "Gradient types",
|
||||
values = {
|
||||
{
|
||||
name = "GRADIENT_COLOR",
|
||||
value = 0,
|
||||
description = "Color gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_LINEAR",
|
||||
value = 1,
|
||||
description = "Horizontal gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_RADIAL",
|
||||
value = 2,
|
||||
description = "Vertical gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_SQUARE",
|
||||
value = 3,
|
||||
description = "Square gradient"
|
||||
},
|
||||
{
|
||||
name = "GRADIENT_CONICAL",
|
||||
value = 4,
|
||||
description = "Conical gradient"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "PixelFormat",
|
||||
description = "Pixel formats",
|
||||
|
|
@ -5038,25 +5100,14 @@ return {
|
|||
}
|
||||
},
|
||||
{
|
||||
name = "GenImageWhiteNoise",
|
||||
description = "Generate image: white noise",
|
||||
name = "GenImageNoise",
|
||||
description = "Generate image: noise",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "NoiseType", name = "type"},
|
||||
{type = "int", name = "width"},
|
||||
{type = "int", name = "height"},
|
||||
{type = "float", name = "factor"}
|
||||
}
|
||||
},
|
||||
{
|
||||
name = "GenImagePerlinNoise",
|
||||
description = "Generate image: perlin noise",
|
||||
returnType = "Image",
|
||||
params = {
|
||||
{type = "int", name = "width"},
|
||||
{type = "int", name = "height"},
|
||||
{type = "int", name = "offsetX"},
|
||||
{type = "int", name = "offsetY"},
|
||||
{type = "float", name = "scale"}
|
||||
{type = "...", name = "args"}
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue