Show an example of changing the color with setfill
This commit is contained in:
@@ -207,6 +207,7 @@ class RegularShape extends ImageStyle {
|
||||
*/
|
||||
setFill(fill) {
|
||||
this.fill_ = fill;
|
||||
this.render();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -325,6 +326,7 @@ class RegularShape extends ImageStyle {
|
||||
*/
|
||||
setStroke(stroke) {
|
||||
this.stroke_ = stroke;
|
||||
this.render();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user