A collection of attributes which define a containing oval for the arc. The
arc is scaled to fit inside the specified oval. All attributes are defined as
floats.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-20 UTC.
[null,null,["Last updated 2025-05-20 UTC."],[],[],null,["# Arc\n\nWatch Face Format version Version 4 Version 3 Version 2 Version 1\n\n*** ** * ** ***\n\nDraws an Arc shape.\n\nSyntax\n------\n\n```xml\n\u003cArc centerX=\"float\" centerY=\"float\" height=\"float\" width=\"float\"\n startAngle=\"float\" endAngle=\"float\"\n direction=\"CLOCKWISE | COUNTER_CLOCKWISE\" /\u003e\n```\n\nAttributes\n----------\n\nThe `Arc` element has the following attributes:\n\n### Required attributes\n\nThe following attributes are required:\n\n`centerX`, `centerY`, `width`, `height`\n\n: A collection of attributes which define a containing oval for the arc. The\n arc is scaled to fit inside the specified oval. All attributes are defined as\n floats.\n\n These Attributes are [transformable](/training/wearables/wff/common/transform/transform).\n\n`startAngle`\n\n: The angle (in degrees) where the arc begins. An angle of 0 degrees\n corresponds to the 12 o'clock position on the watch.\n\n This attribute is [transformable](/training/wearables/wff/common/transform/transform).\n\n`endAngle`\n\n: The angle (in degrees) where the arc ends. An angle of 0 degrees\n corresponds to the 12 o'clock position on the watch.\n\n This attribute is [transformable](/training/wearables/wff/common/transform/transform).\n\n### Optional attributes\n\nThe following attributes are optional:\n\n`direction`\n: The direction of the arc. Either `CLOCKWISE` or `COUNTER_CLOCKWISE`.\n Defaults to `CLOCKWISE`.\n\nInner elements\n--------------\n\nThe `Arc` element must contain a single [`Stroke`](/training/wearables/wff/group/part/draw/style/stroke) or [`WeightedStroke`](/training/wearables/wff/group/part/draw/style/weighted-stroke)\nelement.\n\nAn Arc can also optionally contain any number of the following elements:\n\n- [`Transform`](/training/wearables/wff/common/transform/transform)\n\nRecommended for you\n-------------------\n\n- Note: link text is displayed when JavaScript is off\n- [TextCircular](/training/wearables/wff/group/part/text/text-circular)\n- [TextCircular](/training/wearables/wff/v2/group/part/text/text-circular)\n- [SweepGradient](/training/wearables/wff/group/part/draw/gradient/sweep-gradient)"]]