Class BaseColorModel
Base color model
Inheritance
object
BaseColorModel
Namespace: Terminaux.Colors.Models
Assembly: Terminaux.dll
Syntax
public abstract class BaseColorModel
Methods
| Edit this page View SourceIsSpecifierAndValueValid(string)
Does the string specifier represent a valid RGB specifier?
Declaration
public static bool IsSpecifierAndValueValid(string specifier)
Parameters
Type | Name | Description |
---|---|---|
string | specifier | Specifier that represents a valid RGB specifier |
Returns
Type | Description |
---|---|
bool | True if the specifier is valid; false otherwise. |
IsSpecifierValid(string, bool)
Does the string specifier represent a valid model-agnostic specifier?
Declaration
public static bool IsSpecifierValid(string specifier, bool checkParts = false)
Parameters
Type | Name | Description |
---|---|---|
string | specifier | Specifier that represents a valid model-agnostic specifier |
bool | checkParts | Whether to check parts or not |
Returns
Type | Description |
---|---|
bool | True if the specifier is valid; false otherwise. |
ParseSpecifierToRgb(string, ColorSettings?)
Parses the specifier and returns an instance of RedGreenBlue
Declaration
public static RedGreenBlue ParseSpecifierToRgb(string specifier, ColorSettings? settings = null)
Parameters
Type | Name | Description |
---|---|---|
string | specifier | Specifier of RGB |
ColorSettings | settings | Settings to use. Use null for global settings |
Returns
Type | Description |
---|---|
RedGreenBlue | An instance of RedGreenBlue |
Exceptions
Type | Condition |
---|---|
TerminauxException |