How to add textures to rendered ink?

Hello,

How can we add a texture that follows the shape of the stroke in PencilKit, or change how the ink looks?

there’s a lot of creative ideas to use PencilKit but we can’t do them with the default inks
The rendering engine of PencilKit only supports the built-in inks (pencil, pen, marker).

However since PKDrawing exposes access to the underlying stroke and point data, it is possible to build a custom rendering engine that draws strokes using any style or texture, using Metal or other rendering technologies. For details, check out the "Inspect, modify, and construct PencilKit drawings" session.
How to add textures to rendered ink?
 
 
Q