drawing color on the watch

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);

    }

  • Do you set the color back to Blue and White after you draw the hands?

    Before you do the dc.clear() call, you really want to set the color there too. I'd start with white and white, then set them to blue and white after the clear, 

    This is something that can vary by device and the sim doesn't reflect all cases/all devices

    function onUpdate(dc as Dc) as Void {
            dc.setColor(Graphics.COLOR_WHITE,Graphics.COLOR_WHITE);     //add this
            dc.clear();
            dc.setColor(Graphics.COLOR_BLUE,Graphics.COLOR_WHITE);      //add this
            intersection(dc);

    for example