Hi there! I am interested in using spectra as a colour library and was hoping that it could perform equality testing and hashing. Currently, this is the state of equality testing:
spectra.html('black') == spectra.html('black') # False
spectra.rgb(1, 0, 0) == spectra.rgb(1, 0, 0) # False
hash(spectra.rgb(1, 0, 0)) == hash(spectra.rgb(1, 0, 0)) # False
Would you be open to a PR that implemented equality testing through the __eq__ and __hash__ methods?
Hi there! I am interested in using
spectraas a colour library and was hoping that it could perform equality testing and hashing. Currently, this is the state of equality testing:Would you be open to a PR that implemented equality testing through the
__eq__and__hash__methods?