Controlling gradient fill

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.

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);