Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要将此字符串转换为十六进制颜色:'0.047,0.380,0.247,0.900'。它被标记为“Forrest”并被发送到移动设备以定义背景颜色。大概是cmyk颜色。
任何人都知道使用 php 或 js/jquery 转换它的好方法吗?
这个网站应该可以帮助你一点。只需要一点数学。
编辑: 这是一个更好的页面:http ://www.easyrgb.com/index.php?X=MATH