SVG linear gradient from hue 0 to 360

前端 未结 3 1823
梦如初夏
梦如初夏 2021-02-20 15:50


(source: elv1s.ru)

What a proper way to do a gradient like this? I tried this SVG:



        
3条回答
  •  自闭症患者
    2021-02-20 16:26

    If it's acceptable to generate the SVG with Javascript you might want to look at: How to interpolate hue values in HSV colour space?

    or perhaps:

    http://www.carto.net/papers/svg/gui/colourPicker/

    Edit: Actually there is one here. would that be correct?

    http://upload.wikimedia.org/wikipedia/commons/5/5d/HSV-RGB-comparison.svg

提交回复
热议问题