GSDP:GAM100/CProcessing/circleMode()

From Inside
Jump to: navigation, search

circleMode

Description

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

Example

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

    // draw a circle in default mode RADIUS, a quarter the size of the screen
    circle(windowWidth / 2.0f, windowHeight / 2.0f, windowWidth / 4.0f);

    // set the mode to CENTER
    circleMode(CENTER);

    // Draw a circle that will be double the size of the other
    circle(windowWidth / 2.0f, windowHeight / 2.0f, windowWidth / 4.0f);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>