阅读背景:

函数返回基于传递的值的颜色

来源:互联网 

I would like to create a function that will return a colour based on a value that is inserted into it. Ideally what I'm looking to do is have three different colours (e.g. red, green, blue) and a range (e.g. 1 to 100), so that if for example you pass 80 to the function, it will return a colour between green and blue (closer to blue obviously).I would like to create a function that will ret




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: