5 Star 4 Fork 1

HarmonyOS-TPC / MyLittleCanvas

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CircleShape.md 944 Bytes
一键复制 编辑 原始数据 按行查看 历史

CircleShape

Position

  • moveXBy(float differenceX)

  • moveYBy(float differenceY)

  • setCenterX(float centerX)

  • setCenterY(float centerY)

  • setRadius(float radius)

Limits

  • .setMinX(float minX)
  • .setMaxX(float maxX)
  • .setMinY(float minY)
  • .setMaxY(float maxY)

Decoration

  • .setBorderColor(int borderColor)
  • .setBorderWidth(float borderWidth)

Animation

this will use RectShapeAnimation

  • .animate().centerX(float... values)

  • .animate().centerXTo(float... values)

  • .animate().centerXPlus(float... values)

  • .animate().centerY(float... values)

  • .animate().centerYTo(float... values)

  • .animate().centerYPlus(float... values)

  • .animate().radius(float... values)

  • .animate().radiusTo(float... values)

  • .animate().radiusBy(float... values)

  • .animate().radiusPlus(float... values)

  • .animate().borderWidthTo(int... colors)

  • .animate().borderColorTo(int... colors)

1
https://gitee.com/HarmonyOS-tpc/MyLittleCanvas.git
git@gitee.com:HarmonyOS-tpc/MyLittleCanvas.git
HarmonyOS-tpc
MyLittleCanvas
MyLittleCanvas
master

搜索帮助