如题,因为自己图像处理的知识不是很全面,希望有人可以提供一张现成的彩虹色带图,从蓝色到红色或者从红色到蓝色的时候都可以。。。
生成heatmap的时候我就可以直接截取这个色图里面的颜色了
谢谢!
认证0级讲师
Attached is the code, copy it into a text file, change the extension to html and open it with a browser
<!doctype html> <html> <head> <title>test</title> </head> <body> <canvas id="canvas" width="1024" height="50" style="width:100%;"> 您的浏览器不支持canvas,请使用firefox chrome或是高版本IE </canvas> <script> var ctx = document.getElementById("canvas").getContext("2d"); var grad= ctx.createLinearGradient(0,0,1024,0); grad.addColorStop(0,"#ff0000"); //红色 grad.addColorStop(1,"#0000ff"); //蓝色 ctx.fillStyle = grad; ctx.fillRect(0,0,1024,50); </script> </body> </html>
It was taken from photoshop. Does it meet your requirements?
Attached is the code, copy it into a text file, change the extension to html and open it with a browser
It was taken from photoshop. Does it meet your requirements?