Path dash return SkPath
Angelk90 opened this issue · comments
Angelk90 commented
Description
Hi! @wcandillon , Would it be possible for dash to return to SkPath?
Code:
const dottedLinePath = Skia.Path.Make()
.moveTo(0, height / 2)
.lineTo(width, height / 2);
dottedLinePath.dash(10, 2, 0);
in
const dottedLinePath = Skia.Path.Make()
.moveTo(0, height / 2)
.lineTo(width, height / 2);
.dash(10, 2, 0);
William Candillon commented
unfortunately not as it needs to return a boolean.
Angelk90 commented
@wcandillon : Wouldn't it be possible to declare the same function with the same value but returning SkPath?
Something like this doesn't work: Angelk90@55d99bf
William Candillon commented
no that's doesn't work indeed.