EllipseSliceGradient

static void GfxRend/EllipseSlice.html">EllipseSliceGradient.html">EllipseSliceGradient(
float x, float y, float xRad, float yRad,
Rgba innerColor, Rgba outerColor,
float startAngle, float sweepAngle,
float angle = 0.0, float accuracy = [default] );

Draws a gradient filled slice of an ellipse with colors changing smoothly from innerColor to outerColor along the radius.

The centre of the ellipse of which the slice is cut is positioned at the given coordinates. The slice will start at the given radial angle startAngle and will end to startAngle + sweepAngle.

Examples

// Draw a filled first quarter of an ellipse which horizontal radius is 70.0 and //
// vertical radius is 50.0 and colors changing smoothly from white to black //
// along the radius //
GfxRend::GfxRend/EllipseSlice.html">EllipseSliceGradient.html">EllipseSliceGradient200.0100.070.050.00.0, AL_PI/4Rgba::WHITE, Rgba::BLACK ); 


Other functions of the class


Questions about EllipseSliceGradient? Click here.