# Graphics Gradient Circles!

**URL:** <https://forum.kirupa.com/t/graphics-gradient-circles/309625>\
**Category:** flash\
**Created:** [May 20, 2010, 2:53am UTC](https://forum.kirupa.com/t/graphics-gradient-circles/309625 "2010-05-20T02:53:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pokenerd](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@Pokenerd](https://forum.kirupa.com/u/Pokenerd)\
**Post date:** [May 20, 2010, 2:53am UTC](https://forum.kirupa.com/t/graphics-gradient-circles/309625/1 "2010-05-20T02:53:59Z")

</div>

Hey Guys!

I have written this code. The ultimate purpose of which is to generate a circle where the interior is of 50% alpha, and the outside is 100% alpha. Should be simple.

```auto
this.graphics.clear();
this.graphics.lineStyle(0,0x000000,0);
this.graphics.beginGradientFill(GradientType.LINEAR,[0xFFFFFF,0x000000],[1,0.5],[0,255]);
this.graphics.drawCircle(275,200,150);
this.graphics.endFill();

```

Instead, when this code is run, I have a mildly greyish circle.

Does anyone here have any suggestions?
