This should be simple… but I’m having a hard time coming up with an equation that works every time.

Let’s say I have a point, p=(91,1), and I need to plot it on my 2d graph, which, in OpenGL has the x-axis: (1,8) -> (9,8), and the y-axis: (1,8) -> (1,1), because y increases in the downward direction.

So, how do I convert the point ‘p’ so that is shows at the right place on the graph?