Hello,
I am using DC methods to draw my shapes.
On the emulator, the drawings work without problems but once on the watch, the whole screen is the color I defined in the setColor() method.
Can someone tell me why I have this problem?
I use the Forerunner 935 watch and the Connect IQ 6.4.2 and 4.0.6 sdk
function onUpdate(dc as Dc) as Void {
dc.clear();
intersection(dc);
//View.onUpdate(dc);
}
function intersection(dc){
var points = [];
points.add([220, 120]);
points.add([200, 110]);
points.add([200, 130]);
dc.setPenWidth(5);
dc.setColor(Graphics.COLOR_BLUE, Graphics.COLOR_WHITE);
dc.drawLine(120, 120, 120, 200);
dc.drawLine(120, 120, 200, 120);
dc.fillCircle(120, 200, 5);
dc.fillPolygon(points);
}