def from_html(cls, html_string):
        """
        Create sRGB color from a web-color name or hexcode.

        :param str html_string: Web-color name or hexcode.

        :rtype: Color
        :returns: A spectra.Color in the sRGB color space.
        """
        rgb = GC.NewFromHtml(html_string).rgb
        return cls("rgb", *rgb)
def from_html ( cls , html_string ) : rgb = GC . NewFromHtml ( html_string ) . rgb return cls ( "rgb" , * rgb )
Create sRGB color from a web-color name or hexcode.

        :param str html_string: Web-color name or hexcode.

        :rtype: Color
        :returns: A spectra.Color in the sRGB color space.