Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

interleaved RGBA vector #65

Closed
SymbolixAU opened this issue Apr 24, 2020 · 0 comments
Closed

interleaved RGBA vector #65

SymbolixAU opened this issue Apr 24, 2020 · 0 comments

Comments

@SymbolixAU
Copy link
Collaborator

SymbolixAU commented Apr 24, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants