Size-index Interface. This class can be used directly as the ColorF in span_gradient. All it needs is two access methods size() and operator []. --------------------------------------------------------------------
| 154 | // size() and operator []. |
| 155 | //-------------------------------------------------------------------- |
| 156 | static unsigned size() |
| 157 | { |
| 158 | return color_lut_size; |
| 159 | } |
| 160 | const color_type& operator[](unsigned i) const |
| 161 | { |
| 162 | return m_color_lut[i]; |