跳到主要内容

描边端点(StrokeCap)

定义开放描边段末端使用的形状。

  • butt — 方形末端,不延伸。
  • round — 半圆端点。
  • square — 方形端点,会延伸超过末端。
self.paint = Paint.with({
color = Color.rgb(255, 100, 50),
cap = 'round',
style = 'stroke',
})
看完还有疑问?进群交流下!
与众多 Rive 创作者、开发者一起交流探讨与答疑解惑。
加入交流群