computer-graphics-raster-images icon indicating copy to clipboard operation
computer-graphics-raster-images copied to clipboard

Understanding vector format for RGBA and RGB data.

Open zuhaib27 opened this issue 4 years ago • 1 comments

Hello, I understand I'm running late, but I just wanted to confirm the vector array format for the rgba and rgb data. Is the rgba data that is in the provided vector in the following format: [r0, r1, r2, ... , rx, b0, b1, ... ,bx, g0, g1, ... , gx, a0, a1, ... , ax] Or is it like so: [r0, g0, b0, a0, r1, g1, b1, a1, ... , rx, gx, bx, ax]

Would like to know if its the first convention or the second? As well as which format our rgb vector and other data sets should follow.

zuhaib27 avatar Jan 21 '21 23:01 zuhaib27

It's the second one: [r0, g0, b0, a0, r1, g1, b1, a1, ... , rx, gx, bx, ax] The RGB vector is the same but without ax.

bmcquillan avatar Jan 22 '21 16:01 bmcquillan