Question on processing

Does anyone know how to make a shape at an angle, not horizontal? Trying to figure it out.  

Comments

  1. Hi Xiomara,
    It all depends on the kind of shape you're trying to make. If you're trying to make a skewed rectangle, for instance, use the quad() function instead of rect(). Also, use the Processing reference page to look this up. A quad() calls for eight numbers in order to create four points. This way you can make a four-sided shape that has any points that you want. Each of the four points of your desired shape are assigned using two numbers, the x and y of each point. I would be happy to show you on Thursday if you're still struggling. Great question!

    ReplyDelete

Post a Comment