# Controlling gradient fill

**URL:** <https://forum.kirupa.com/t/controlling-gradient-fill/248514>\
**Category:** Uncategorized\
**Created:** [January 9, 2008, 3:42am UTC](https://forum.kirupa.com/t/controlling-gradient-fill/248514 "2008-01-09T03:42:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nburlington](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/nburlington/32/1365_2.png) [@nburlington](https://forum.kirupa.com/u/nburlington)\
**Post date:** [January 9, 2008, 3:42am UTC](https://forum.kirupa.com/t/controlling-gradient-fill/248514/1 "2008-01-09T03:42:21Z")

</div>

How do I rotate my gradient around so its not always a left/right gradient?

What value do I manipulate? I want to learn how to rotate to specific angles.

```auto
colors = [0xA6A74D,0xF0E46B];
    fillType = "linear";
    alphas = [100, 100];
     ratios = [0, 127];
    spreadMethod = "pad";
       interpolationMethod = "RGB";
     focalPointRatio = 0.9;
     matrix = new Matrix();
       matrix.createGradientBox(100,100,0,0,0);
    
        beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);

```
