Color representation as rgb, int and hex

Gregory Ewing greg.ewing at canterbury.ac.nz
Mon Sep 9 05:35:30 EDT 2019


Eko palypse wrote:
> I thought a method called fromhex would imply that bytes for an integer
> should be created

Why should it imply that? You're asking it to create some bytes
from a string of hex digits -- no mention of integers. The obvious
thing to do is to put the bytes in the order they apper in the
string.

-- 
Greg



More information about the Python-list mailing list