Thanks sswift, interesting idea using a locked buffer.
Since I only need right angled triangles I can simplify your code a lot as there’s only one gradient to calculate. Can’t say I understand how you’re finding the gradient using all that bit shifting. I’m using trig myself.
Is TAN() quite slow in Blitz+?
Also, what’s faster, drawing lines or drawing filled rectangles?
Cheers!
Since I only need right angled triangles I can simplify your code a lot as there’s only one gradient to calculate. Can’t say I understand how you’re finding the gradient using all that bit shifting. I’m using trig myself.
Is TAN() quite slow in Blitz+?
Also, what’s faster, drawing lines or drawing filled rectangles?
Cheers!