| ColorFromGrayscale Method  | 
 
            Creates a Color with a specified value for the Red, Green, and Blue components
            
 
    Namespace: 
   Eto.Drawing
    Assembly:
   Eto (in Eto.dll) Version: 2.5.3-dev
 Syntax
Syntaxpublic static Color FromGrayscale(
	float val,
	float alpha = 1f
)
Public Shared Function FromGrayscale ( 
	val As Single,
	Optional alpha As Single = 1F
) As Color
static member FromGrayscale : 
        val : float32 * 
        ?alpha : float32 
(* Defaults:
        let _alpha = defaultArg alpha 1f
*)
-> Color 
Parameters
- val
- Type: SystemSingle
 Value for each RGB component
- alpha (Optional)
- Type: SystemSingle
 Alpha value
Return Value
Type: 
ColorA new instance of the Color object with the specified grayscale color
 See Also
See Also