import ceramic.Color;
import ceramic.Graphics;
import ceramic.Scene;
class LineScene extends Scene {
override function create() {
var g = new Graphics();
g.pos(app.screen.width*0.5, app.screen.height*0.5);
// does not work
g.lineStyle(5, Color.RED);
g.moveTo(0,0);
g.lineTo(0, 200);
// works
g.lineStyle(5, Color.BLUE);
g.drawLine(0,0,200,0);
}
}
Expected: both red and blue lines are drawn
Actual: only blue line is drawn
Expected: both red and blue lines are drawn
Actual: only blue line is drawn