GSDP:GAM100/CProcessing/ellipseRotated()

From Inside
Jump to: navigation, search

ellipseRotated()

Description

A specialized version of the ellipse() function which allows you to specify a rotation (in degrees). The shape will rotate about the reference point specified by the ellipseMode() .

Parameters

ellipseRotated(x, y, w, h, d)

  • x - (float) the horizontal position of the ellipse
  • y - (float) the vertical position of the ellipse
  • w - (float) the width (horizontal diameter) of the ellipse
  • h - (float) the height (vertical diameter) of the ellipse
  • d - (float) the rotation in degrees

Example

void update() 
{
    // draw a 100x50 ellipse rotated by 45 degrees at the mouse position
    ellipseRotated(mouseX, mouseY, 100.0f, 50.0f, 45.0f);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>