Question: i have drawn two semitransparent circles which intersect each other. I have found that the intersection region is deeper in color than other regions. is there any way to make the whole shape as one semitransparent color (color shouldn't be deeper in one area than others)?

is it possible to send me any sample code to solve the problem? 

right now in the draw method, i am using the following code:

```
spriteBatch.Begin(SpriteBlendMode.AlphaBlend);

spriteBatch.Draw(textureCircle1, spritePositionCircle1, new Color(255, 255, 255, (int)(150)));
spriteBatch.Draw(textureCircle2, spritePositionCircle2, new Color(255, 255, 255, (int)(150)));
spriteBatch.End();

base.Draw(gameTime);

```

Answer: 
Try this. It should find the "MarkerA" (etc.) portion of the url of the background-image and if it finds it, add the class using the character code of the capital letter to calculate your 1, 2, 3, etc. on your "marker" class (I have not tested it):

```
$('.markersHolder > div').each(function(){

   var mark = $(this).css('background-image').match(/Marker./);
   if(mark) {
     $(this).addClass("marker"+(mark[0].charCodeAt(mark[0].length-1)-65));
   }
});

```

Added this on edit:

If you match the class name to the image name as mcgrailm suggested in the comment to Pekka then it could be just:

```
$('.markersHolder > div').each(function(){
   var mark = $(this).css('background-image').match(/Marker./);
   if(mark) {
     $(this).addClass(mark[0]);
   }
});

```
If it's just this repetitive code, you should be able to use a regex

```
$(".markersHolder > div").each( function() {
        var r = new RegExp("^url\\(.{0,1}http://www.axtsweapons.com/gmarkers/red_Marker([A-Z]).png.{0,1}\\)");
        var s = $(this).css('background-image');
        var x = s.match(r);
        if (x) {
            var charToInt = x[1].charCodeAt(0) - 65;
            $(this).addClass('marker' + charToInt);
        }
});

```

It extracts the letter after `red_marker` in the image url and converts it to the appropriate number to find the correct class. You may want to narrow down the `.{0,1}` part, as `.` may be too broad (i imagine whitespace, `'` and `"` should be the only cases)