Color3: CSS colors parsing for rgba, hsl, hsla
Adds support for: - rgba(int, int, int, float) - rgba(pct, pct, pct, float) - hsl(deg, pct, pct) - hsla(deg, pct, pct, float) More tolerant about whitespaces. Add new unit tests. Finalizes support for parsing "all" CSS color expression. Alpha component is ignored. Fixes #6014. Hat tip: https://www.npmjs.com/package/parse-color http://www.css-validator.org/
Showing
想要评论请 注册 或 登录