ctx.fillStyle = rgba(red,green,blue,alp);
var red = Math.round(Math.random()*255);
var green = Math.round(Math.random()*255);
var blue = Math.round(Math.random()*255);
var alp = 1;
ctx.fillStyle = rgba(red,green,blue,alp);
var red = Math.round(Math.random()*255);
var green = Math.round(Math.random()*255);
var blue = Math.round(Math.random()*255);
var alp = 1;
本文标题:十二、canvas随机颜色
本文链接:https://www.haomeiwen.com/subject/ucuioctx.html
网友评论