ursus
01/25/2023, 7:07 PMstyle
for the whole path
drawPath(path, color, style)
Is this even a Path
? could it maybe be drawPoints
with changed size per point?romainguy
01/25/2023, 8:39 PMPath
APIs. It’s something that would have to be built and exposed as a PathEffect
. To achieve what you want you could indeed draw points of varying size, or stamp a bitmap brush along a path, varying its scale (and you’d have to be careful if you ever need to use translucent colors since overlapping points/brushes won’t do what you want)ursus
01/25/2023, 8:48 PMpath.lineTo
and sometimes it is possible to see the individual segments .. so should I maybe interpolate until it's contiguous at all times? or go the path effect way?romainguy
01/25/2023, 8:49 PMPathEffect
for this unfortunately. What I meant is that we (Android team) would have to add a new PathEffect
API in the platformlineTo
and how to achieve the variable width: https://developer.squareup.com/blog/smoother-signatures/ursus
01/25/2023, 8:52 PMromainguy
01/25/2023, 8:53 PMdrawSteps
like they doursus
01/25/2023, 8:55 PMromainguy
01/25/2023, 8:55 PMursus
01/25/2023, 8:56 PMromainguy
01/25/2023, 8:57 PMursus
01/25/2023, 8:58 PMromainguy
01/25/2023, 8:59 PMjw
01/25/2023, 9:00 PMursus
01/25/2023, 9:00 PMpointerInput
can I tell the area of the finger?jw
01/25/2023, 9:00 PMromainguy
01/25/2023, 9:01 PMursus
01/25/2023, 9:04 PMromainguy
01/25/2023, 9:05 PMursus
01/25/2023, 9:05 PMromainguy
01/25/2023, 9:14 PMursus
01/25/2023, 9:59 PMromainguy
01/25/2023, 10:33 PM