描边端点(StrokeCap)
定义开放描边段末端使用的形状。
butt— 方形末端,不延伸。round— 半圆端点。square— 方形端点,会延伸超过末端。
self.paint = Paint.with({
color = Color.rgb(255, 100, 50),
cap = 'round',
style = 'stroke',
})
定义开放描边段末端使用的形状。
butt — 方形末端,不延伸。round — 半圆端点。square — 方形端点,会延伸超过末端。self.paint = Paint.with({
color = Color.rgb(255, 100, 50),
cap = 'round',
style = 'stroke',
})