is_hex¶
Python reference for nagasim.appearance.is_hex. Provisional: it may change between minor versions, see Appearance.
Whether value is a colour #RRGGBB: six hex digits, either case, nothing around them.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
object
|
Anything; a non-string is never a colour. |
required |
Returns:
| Type | Description |
|---|---|
bool
|
True for |
See Also
nagasim.appearance.material : Turns a hex frame colour into paint.
Examples:
>>> from nagasim.appearance import is_hex
>>> is_hex("#1F4C9E"), is_hex("blue")
(True, False)