We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
转换方法:
function opacity2hex(opacity) { const hexValue = Math.round((opacity / 100) * 255) const hexString = hexValue.toString(16).padStart(2, '0') return hexString }
function hex2opacity(hex) { const decimalValue = parseInt(hex, 16) const opacity = Math.round((decimalValue / 255) * 100) return opacity }
0% ~ 100%
0% ~ 10%
11% ~ 20%
21% ~ 30%
31% ~ 40%
41% ~ 50%
51% ~ 60%
61% ~ 70%
71% ~ 80%
81% ~ 90%
91% ~ 100%
The text was updated successfully, but these errors were encountered:
No branches or pull requests
转换方法:
0% ~ 100%
0% ~ 10%
展开
11% ~ 20%
展开
21% ~ 30%
展开
31% ~ 40%
展开
41% ~ 50%
展开
51% ~ 60%
展开
61% ~ 70%
展开
71% ~ 80%
展开
81% ~ 90%
展开
91% ~ 100%
展开
The text was updated successfully, but these errors were encountered: