Skip to content

Uint8ClampedArray declaration unusable #26

@JSMonk

Description

@JSMonk

org.khronos.webgl.Uint8ClampedArray getter and setter declarations use Byte. Which means assigning values over 127 to it is not trivial.
Also the values obtained from it violate the Byte contract

Besides one could argue that it is not a "real" array. Assigning values outside of 0..255 range is completely normal for it.

This case is important, because it is used for the canvas manipulation: https://developer.mozilla.org/en-US/docs/Web/API/ImageData/data

More information here: https://youtrack.jetbrains.com/issue/KT-24583

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions