Class Texture2DExtensions
Inheritance
Texture2DExtensions
Assembly: GGL.dll
Syntax
public static class Texture2DExtensions
Methods
|
Edit this page
View Source
Paint(Texture2D, Color, Func<int, int, bool>)
Paint and apply color to a texture.
Declaration
public static Texture2D Paint(this Texture2D texture, Color color, Func<int, int, bool> condition = null)
Parameters
Type |
Name |
Description |
Texture2D |
texture |
|
Color |
color |
|
Func<int, int, bool> |
condition |
|
Returns
Type |
Description |
Texture2D |
|
|
Edit this page
View Source
PaintBorder(Texture2D, Color, int)
Paint and apply a colored border to a texture.
Declaration
public static Texture2D PaintBorder(this Texture2D texture, Color boderColor, int borderWidth)
Parameters
Type |
Name |
Description |
Texture2D |
texture |
|
Color |
boderColor |
|
int |
borderWidth |
|
Returns
Type |
Description |
Texture2D |
|