Class ColorParser

    • Method Detail

      • parseTtmlColor

        @ColorInt
        public static int parseTtmlColor​(String colorExpression)
        Parses a TTML color expression.
        Parameters:
        colorExpression - The color expression.
        Returns:
        The parsed ARGB color.
      • parseCssColor

        @ColorInt
        public static int parseCssColor​(String colorExpression)
        Parses a CSS color expression.
        Parameters:
        colorExpression - The color expression.
        Returns:
        The parsed ARGB color.