I need to make a function/method that draws arcs inside a matrix. I would use 1s as points that shape the arc and 0s as empty spots. So the function would produce something like this matrix (only I would use 1400x700 matrix in reality):
000000000000000
000100000001000
000010000010000
000000111000000
000000000000000
I need to pass the following parameters to the function:
x:
the x coordinate
y:
the y coordinate
w:
the width
h:
the height
start:
the start angle, in degrees
extent:
the extent, in degrees
Now, I don't know the math on how to do it. Anyone could help me?