-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Description
taichi/python/taichi/ui/gui.py
Line 934 in ba0e81d
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
Labels
No labels
Type
Projects
Status
Untriaged