var canvasBmo = document.getElementById('canvasBmo');
var ctxBmo = canvasBmo.getContext('2d');
canvasBmo.width = 400;
canvasBmo.height = 400;
var draw = function (){
ctxBmo.beginPath();
ctxBmo.fillStyle = "rgba(0,0,0,0.2)";
ctxBmo.strokeStyle = "rgba(0,0,0,0.2)";
for(let i=1;i<9;i++){
let pos = 50*i
// 画垂直线
ctxBmo.moveTo(pos,0);
ctxBmo.lineTo(pos,400);
// 画水平线
ctxBmo.moveTo(0,pos);
ctxBmo.lineTo(400,pos);
// 写轴 x 座标与 y 轴座标
ctxBmo.fillText(pos,pos,10);
ctxBmo.fillText(pos,0,pos);
}
ctxBmo.stroke();
// BMO 身体
ctxBmo.fillStyle = 'hsl(138, 39%, 64%)';
ctxBmo.beginPath();
ctxBmo.fillRect(50,50,300,300);
ctxBmo.closePath();
}
今天的纪录到这边,如果路过的大侠有发现有什麽理解有出入的地方,希望能邦帮忙提点一波,乾虾 ε= ᕕ( ᐛ )ᕗ
<<: Day10 - this&Object Prototypes Ch3 Objects - Contents - Getters and Setters
>>: Day11 - 用 v-model 做父子元件间的双向绑定
Transfer Learning的意思是,假设你现在有一些跟你的task没有直接相关的data,那...
Service 就像是在Windows 设计程序中的「背景运作」系统服务类型的程序,我们可以设计具有...
今天,我们继续【Lab】EC2储存资源 EBS Volume 建立与使用下半部分。 连进 EC2 ...
有 Jenkins、有 Gitlab、 有 Web Portal 又有给 Web Portal 部署...
The influential reach of Music is surprising consi...