UtilColorGetRandomColor(Byte, Byte, Byte, Byte, Byte, Byte, Byte, Byte) Method
Generates a random A-RGB color between the specified range of values.
Namespace: DevCase.Core.Media.GraphicsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static Color GetRandomColor(
byte alphaMin,
byte alphaMax,
byte redMin,
byte redMax,
byte greenMin,
byte greenMax,
byte blueMin,
byte blueMax
)
Public Shared Function GetRandomColor (
alphaMin As Byte,
alphaMax As Byte,
redMin As Byte,
redMax As Byte,
greenMin As Byte,
greenMax As Byte,
blueMin As Byte,
blueMax As Byte
) As Color
Dim alphaMin As Byte
Dim alphaMax As Byte
Dim redMin As Byte
Dim redMax As Byte
Dim greenMin As Byte
Dim greenMax As Byte
Dim blueMin As Byte
Dim blueMax As Byte
Dim returnValue As Color
returnValue = UtilColor.GetRandomColor(alphaMin,
alphaMax, redMin, redMax, greenMin,
greenMax, blueMin, blueMax)
public:
static Color GetRandomColor(
unsigned char alphaMin,
unsigned char alphaMax,
unsigned char redMin,
unsigned char redMax,
unsigned char greenMin,
unsigned char greenMax,
unsigned char blueMin,
unsigned char blueMax
)
static member GetRandomColor :
alphaMin : byte *
alphaMax : byte *
redMin : byte *
redMax : byte *
greenMin : byte *
greenMax : byte *
blueMin : byte *
blueMax : byte -> Color
No code example is currently available or this language may not be supported.
- alphaMin Byte
-
The Alpha channel minimum value.
- alphaMax Byte
-
The Alpha channel maximum value.
- redMin Byte
-
The Red channel minimum value.
- redMax Byte
-
The Red channel maximum value.
- greenMin Byte
-
The Green channel minimum value.
- greenMax Byte
-
The Green channel maximum value.
- blueMin Byte
-
The Blue channel minimum value.
- blueMax Byte
-
The Blue channel maximum value.
Color
The random
Color.