我正在开发一个需要显示颜色编码指示器的应用程序。标准颜色为红色/琥珀色/绿色,但我需要能够选择任何颜色(例如按十六进制值)。颜色由脚本根据数据(仪表板样式)动态更新。
有图书馆可以帮助我吗?我特别考虑使用脚本可以修改的 svg 或 canvas 图形。
注意:问题已被重新表述,以更好地解释上下文。
I am working on an application where I need to display color coded indicators. The standard colors will be red/amber/green, but I need to be able to pick any color (e.g. by hex value). The colors are updated dynamically by a script, based on data (dashboard style).
Are there libraries that could help me? I am thinking in particular about using svg or canvas graphics that the script could modify.
Note: the question has been rephrased to better explain the context.
发布评论
评论(2)
我喜欢 WikiCommons 上的这个集合。它们采用 SVG
http://commons.wikimedia.org/wiki/Tango_icons
I like this collection on WikiCommons. They are in SVG
http://commons.wikimedia.org/wiki/Tango_icons
这里有几个链接:
Here are a couple of links to start with: