help generating fanned out triangles
in
Programming Questions
•
1 year ago
I'm trying to generate a bunch of random triangles like those I've drawn below. I want them to all share one point (might not be the origin), and to have different heights, and to point out in different directions .... but I can't figure out how to control the width of the bases, or how to keep their bases perpendicular to the shared point (so the triangles near the top of the screen have a vertical base, and the triangles near the left edge of the screen a have horizontal base). The overall placement is random, it doesn't matter if they overlap.
I started messing with sin/cos/radians, but not having any luck.
Thanks for any help.
I started messing with sin/cos/radians, but not having any luck.
Thanks for any help.
1