this question is for exclusively mechanical diploma/engineer

please give me the codings to animate the four bar mechanism using c graphics