We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › how to rotate abt x-axis
Page Index Toggle Pages: 1
how to rotate abt x-axis? (Read 463 times)
how to rotate abt x-axis?
Dec 15th, 2005, 10:09am
 
I'm trying to draw a BarChart, but there is a problem that the bars r towards down,but it should be towards up.
Here i want to explain in details that in the BarChart program i draw the bars as one one rectangle,where i gave  the inputs r 'x' coordinate(variable),'y' coordinate(constant),width(constant),& height(variable).

Please help me to do as it should be...
Re: how to rotate abt x-axis?
Reply #1 - Dec 15th, 2005, 11:14am
 
Is the problem that the 2D coordinate system has (0, 0) in the top, left corner, with y increasing downwards?

http://processing.org/reference/environment/index.html#Coordinates

If so, adjust the y-coordinates for the bars.
Page Index Toggle Pages: 1