 |
TextureFactoryCreateGradientRawImageData(Color3, Color3, Int32, Boolean) Method |
Create a RawImageData with data array filled with color gradient between the two specified colors.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic static RawImageData CreateGradientRawImageData(
Color3 startColor,
Color3 endColor,
int textureSize = 256,
bool isHorizontal = true
)
Parameters
- startColor Color3
- First color of the color gradient.
- endColor Color3
- Second color of the color gradient.
- textureSize Int32 (Optional)
- Width (when isHorizontal is true) or Height (when isHorizontal is false) of the generated texture.
- isHorizontal Boolean (Optional)
- true to create a horizontal texture (size: textureSize x 1); false to create a vertical texture (size: 1 x textureSize).
Return Value
RawImageDataGenerated RawImageData.
See Also