ColorWeb-CG icon indicating copy to clipboard operation
ColorWeb-CG copied to clipboard

Proceed with `Float16Array`

Open petamoriken opened this issue 1 year ago • 6 comments

Float16Array is proposed in TC39 at Stage 1. Can we move in the direction of advancing that?


Choice of Float32Array for ImageData

There does not exist a Float16Array type, and so it is not an option. The only other floating-point type, Float64Array, is of unnecessarily high precision.

https://github.com/w3c/ColorWeb-CG/blob/14bffcb85327b011026def4f7ebf9b88e724afad/canvas_float.md#choice-of-float32array-for-imagedata

petamoriken avatar Nov 18 '22 02:11 petamoriken