Hello, I recently downloaded the Garmin SDK to make a watch face. I am trying to make a watch face similar to those 70's flip clocks. In
onUpdate(), I have this piece of code to draw a rounded rectangle:
fillRoundedRectangle(x=20, y=30, width=30, height=30, radius=5);
When I run the code, I get the following output:
ERROR: vivoactive3: C:\Users\*****\Garmin SDK\FlipClock\FlipClock\source\FlipClockView.mc:29,8: no viable alternative at input 'fillRoundedRectangle(x=' ERROR: vivoactive3: C:\Users\*****\Garmin SDK\FlipClock\FlipClock\source\FlipClockView.mc:29,30: mismatched input '=' expecting {'|', '||', '&&', '==', '<=', '>=', '!=', '+', '-', '^', '/', '%', '&', '<<', '>>', 'as', 'instanceof', 'has', 'and', 'or', '[', '<', '>', ')', '.', '*'} ERROR: vivoactive3: C:\Users\*****\Garmin SDK\FlipClock\FlipClock\source\FlipClockView.mc:29,33: mismatched input ',' expecting {'|', '||', '&&', '==', '<=', '>=', '!=', '+', '-', '^', '/', '%', '&', '<<', '>>', 'as', 'instanceof', 'has', 'and', 'or', '[', '<', '>', ')', '.', '*'} ERROR: vivoactive3: C:\Users\*****\Garmin SDK\FlipClock\FlipClock\source\FlipClockView.mc:29,39: mismatched input ',' expecting {'|', '||', '&&', '==', '<=', '>=', '!=', '+', '-', '^', '/', '%', '&', '<<', '>>', 'as', 'instanceof', 'has', 'and', 'or', '[', '<', '>', '.', ';', '*'} ERROR: vivoactive3: C:\Users\*****\Garmin SDK\FlipClock\FlipClock\source\FlipClockView.mc:29,49: mismatched input ',' expecting {'|', '||', '&&', '==', '<=', '>=', '!=', '+', '-', '^', '/', '%', '&', '<<', '>>', 'as', 'instanceof', 'has', 'and', 'or', '[', '<', '>', '.', ';', '*'} ERROR: vivoactive3: C:\Users\*****\Garmin SDK\FlipClock\FlipClock\source\FlipClockView.mc:29,60: mismatched input ',' expecting {'|', '||', '&&', '==', '<=', '>=', '!=', '+', '-', '^', '/', '%', '&', '<<', '>>', 'as', 'instanceof', 'has', 'and', 'or', '[', '<', '>', '.', ';', '*'} ERROR: vivoactive3: C:\Users\*****\Garmin SDK\FlipClock\FlipClock\source\FlipClockView.mc:29,70: extraneous input ')' expecting ';'
How do I fix this?