Triangular buttons

please format code with </> button * homework policy * asking questions

Hi, I know it might be quite a trivial topic but I really don’t have an idea of how to create a triangular button. I thought about using trigonometric functions but again I only know the SOH-CAH-TOA thing and sine and cosine rule.

1 Like

You can create a triangle() and check if the mouse in within a specified distance and over a specified color using .get()


Thanks! You’ve helped me so much!

Another option is triangle-point collision detection: