This topic provides a reference table for all automatic type conversions to gradient, sorted by merit.
Direct Conversions
This section lists all direct
conversions to the gradient type. A 'Direct' conversion indicates a relation between very related types, such as integers and numbers, or 2D and 3D points. Though note that even these conversions can fail due to out-of-bounds issues, or be narrowing due to reduction.
| From | Explanation |
|---|---|
| colour | Creates a solid gradient from the color. |
| Colour (RGB) | Creates a solid gradient from the color. |
Fair Conversions
This section lists all fair
conversions to the gradient type. A 'Fair' conversion indicates the types involved are closesly related in a data layout sense, though not necessarily in a conceptual sense. For example booleans and integers, or points and vectors. Although these conversions may fail or narrow, it is nevertheless considered decent practice to rely upon them in algorithms.
| From | Explanation |
|---|---|
| text | Parses gradient notation from the text. |