Skip to content

Wrong doc for rgb_to_hex #8760

@eisterman

Description

@eisterman

def rgb_to_hex(c):

This function rgb_to_hex is indended to be used to convert a rgb color in the format (1.0, 1.0, 1.0) into a hex color as a int32 number.

The documentation of the function talks instead of accepting a List[int] but this is incorrect because using integers you can only have the channels value as 0 or 255 because of the moltiplication.

I think the documentation of the function needs to be corrected to List[float].

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions