Original Post
I want to remove the overlap between a 2D-array containing a circle and another 2D-array containing alpha values of a pictures. (Think an explosion in liero or worms)
But my problem is creating the circle 2D-array from a given radius. I've been looking into the midpoint circle algorithm a little bit, but I cant find any good hits on filled circles.
int[,] CreateCircle(float radius)
{
//return a int matrix where 1 is a pixel part of the circle and 0 is outside the circle
}
But my problem is creating the circle 2D-array from a given radius. I've been looking into the midpoint circle algorithm a little bit, but I cant find any good hits on filled circles.
int[,] CreateCircle(float radius)
{
//return a int matrix where 1 is a pixel part of the circle and 0 is outside the circle
}