Skip to content

The colorsys library does not follow cpython implementation #28

Closed
@Chimrod

Description

@Chimrod

Hello,

I’m openning this issue because I didn’t found any mention of this in the documentation in the page implementation-notes from the library.

There is an existing library colorsys in cpython with the methods named hls_to_rgb or hsv_to_rgb and the developper might be tempted to believe that the code running in cpython could run in circuitpython in the same way.

This is wrong : the functions in cpython returns a float with a range from 0…1 where circuitPython return an int between 0…255.

Could you at least add a caveat in the documentation in order to rise the attention on this point ?

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