I have a square:
<resources>
<drawable-list id="square" background="Gfx.COLOR_BLUE">
<shape type="rectangle" width="72" height="72" color="Gfx.COLOR_PURPLE" corner_radius="2" />
</drawable-list>
</resources>
I tried to display it one my watch face at location x=25, y=76.
Both of the following did not make it happen:
var square = new Rez.Rez.Drawables.square({"locX" => 25, "locY" => 76});
square.draw(dc);
var square = new Rez.Rez.Drawables.square();
square.setLocation(25, 76);
square.draw(dc);
Some help would be appreciated :)
N.B. I don't want to specify the location in the resource file, as I want to be able to draw the shape at different locations.