1
我正在尝试绘制带有虚线边框的圆。我已经试过这样:如何在Dart中使用StageXL绘制虚线圆
Shape shape = new Shape()
..graphics.beginPath()
..graphics.circle(50 , 50, 50)
..graphics.closePath()
..graphics.strokePattern(new GraphicsPattern.repeat(new BitmapData.fromImageElement(new HTML.ImageElement(src: "img/dash.png"))))
..addTo(stage);
}
但圈没有得到显示。看来,strokePattern行破坏我的代码。任何想法如何解决这个问题?