SymbolixAU / colourvalues

R library for assigning colours to values
https://symbolixau.github.io/colourvalues/
46 stars 6 forks source link

interleaved RGBA vector #65

Closed SymbolixAU closed 4 years ago

SymbolixAU commented 4 years ago

To support Float32Array([ ]) buffers RGB(A) colours (in webGL) need to be in an interleaved vector.

Needs a vector of n_coordinates / n_reps to know how many times to repeat each colour.

Would be good to build this directly, rather than as a matrix, then externally convert to a vector.

maybe have a colour_values_interleaved() internal / non-exposed (to R) header function?

and how does it fit in with spatialwidget / other workflows?