File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ class Circle {
4949 }
5050 //% group="Properties"
5151 //% blockSetVariable="myCircle"
52- //% blockCombine block="text"
53- get text ( ) : string {
52+ //% blockCombine block="data text"
53+ get datatext ( ) : string {
5454 return this . _dataText ;
5555 }
5656 //% group="Properties"
5757 //% blockSetVariable="myCircle"
58- //% blockCombine block="text"
59- set text ( value : string ) {
58+ //% blockCombine block="data text"
59+ set datatext ( value : string ) {
6060 this . _dataText = value ;
6161 }
6262 //% group="Properties"
@@ -90,6 +90,13 @@ class Circle {
9090 get radius ( ) : number {
9191 return this . _radius ;
9292 }
93+ //% group="Properties"
94+ //% blockSetVariable="myCircle"
95+ //% blockCombine block="color"
96+ set fillColor ( value : number ) {
97+ this . _fillColor = value ;
98+ this . _img . drawCircle ( this . centerXY , this . centerXY , this . _radius , this . _color ) ;
99+ }
93100 //% group="Properties"
94101 //% blockSetVariable="myCircle"
95102 //% blockCombine block="Fill Color
You can’t perform that action at this time.
0 commit comments