Color scaling function

后端 未结 8 1523
北荒
北荒 2020-12-08 11:40

I am trying to visualize some values on a form. They range from 0 to 200 and I would like the ones around 0 be green and turn bright red as they go to 200.

Basicall

8条回答
  •  误落风尘
    2020-12-08 12:02

    Looking through this wikipedia article I personally would pick a path through a color space, and map the values onto that path.

    But that's a straight function. I think you might be better suited to a javascript color chooser you can find with a quick color that will give you the Hex, and you can store the Hex.

提交回复
热议问题