'Ribbons' Or 'Snake' effect class

Hey Guys,

I’m working on writing a class that kind of creates a ribbon/snake effect. The class itself just needs to draw a box when initiated. I’m having trouble with some of the math though.

I’m going to be passing in information into the initialized class, angle, speed, width, etc. When the instance is greated, the first two points are going to be the last two points of the box. Then I need to place a line at the angle passed in, and draw two more lines to that.

The concept makes sense in my head, but I’m having trouble getting it out into code. Any help would be appreciated.

Thanks!