GSDP:GAM100/CProcessing/ellipseMode()

From Inside
Jump to: navigation, search

ellipseMode

Description

Lets you set the way ellipses and circles will be drawn. Check ShapeMode for options on which modes you can set. Defaults to CENTER.

Example

void update() 
{
    // set the background color to gray
    background(color(200, 200, 200, 255));

    // set the ellipse drawing mode to CORNER
    ellipseMode(CORNER);

    // draw the same ellipse, different mode
    ellipse(windowWidth / 2.0f, windowHeight / 2.0f, windowWidth / 2.0f, windowHeight / 2.0f);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>