Converting a vector image into vertex array?

I’m a absolute beginner in OpenGL. I want to write a coloring app. Take
a simple vector image and allow the user to color it. I thought if I
can convert the image into vertex array and then draw programmatically
I might be able to achieve it?

is there any tool that produce C code (vertex points) from image?