![example picture for vertices()](/images/reference/Py5Shape_vertices_0.png)

```python
import numpy as np
def setup():
random_triangle_vertices = 100 * np.random.rand(25, 2)
s = py5.create_shape()
with s.begin_shape(s.TRIANGLES):
s.vertices(random_triangle_vertices)
py5.shape(s)
```