Commit 25707be6 authored by Chen Jiping's avatar Chen Jiping

fix:增加背景

parent 40333b34
......@@ -605,6 +605,8 @@ export class PlayComponent implements OnInit, OnDestroy {
initView() {
this.initBg();
this.initTitle();
this.initBottomPart();
......@@ -614,6 +616,12 @@ export class PlayComponent implements OnInit, OnDestroy {
this.initExercises();
}
initBg(){
const bg = new ShapeRect();
bg.fillColor = "#f0f5f8";
bg.setSize(this.canvasWidth, this.canvasHeight);
this.renderArr.push(bg);
}
initBottomPart() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment