“e31aef9f6e52159f777cafa668e2f2c8d045249d”上不存在“python/git@gitcode.net:s920243400/PaddleDetection.git”
提交 1cd5eaf3 编写于 作者: L lanyill 提交者: lanyi

fixed acf3a944 from https://gitee.com/lanyill/docs/pulls/13646

修改globalAlpha属性demo
Signed-off-by: Nlanyill <lanyi3@huawei.com>
上级 d21318b9
......@@ -388,7 +388,7 @@ struct GlobalAlpha {
.height('100%')
.backgroundColor('#ffff00')
.onReady(() =>{
this.context.fillStyle = 'rgb(255,0,0)'
this.context.fillStyle = 'rgb(0,0,255)'
this.context.fillRect(0, 0, 50, 50)
this.context.globalAlpha = 0.4
this.context.fillStyle = 'rgb(0,0,255)'
......
......@@ -407,7 +407,7 @@ struct GlobalAlpha {
.height('100%')
.backgroundColor('#ffff00')
.onReady(() =>{
this.offContext.fillStyle = 'rgb(255,0,0)'
this.offContext.fillStyle = 'rgb(0,0,255)'
this.offContext.fillRect(0, 0, 50, 50)
this.offContext.globalAlpha = 0.4
this.offContext.fillStyle = 'rgb(0,0,255)'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册