Several programs with example code using Parapin are included in the Parapin distribution. Look in the /examples subfolder.