Took from the ml5 example here. Also shows how to load an image.
The markdown of the above sketch looks like:
1link> :P5 lib1=https://unpkg.com/ml5@latest/dist/ml5.min.js, sketch=/docs/sketches/lib.js, width=512, height=512
Check the component specs for details.