Skip to content

Graphics.lineTo does not work #172

Description

@T1mL3arn
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions