OutlinedRectangle

From Spheriki

Jump to: navigation, search

Draws the outline of a rectangle.

Contents

Usage

OutlinedRectangle(x, y, width, height, color [, size]);
  • x The x coordinate of the top left corner of the rectangle.
  • y The y coordinate of the top left corner of the rectangle.
  • width The width of the rectangle.
  • height The height of the rectangle.
  • color The color of the line.
  • size The thickness of the line.


Examples

OutlinedRectangle(10, 20, 50, 50, CreateColor(0,0,0,255));
FlipScreen()

This will make a 50x50px square 10px in and 20px down. The outline will be black.

OutlinedRectangle(5, 5, 80, 20, CreateColor(0,255,0,255), 2);
FlipScreen()

This will make an 80x20px rectangle at (5, 5) with a blue outline that is 2px thick.


Notes

  • Like all the other primitive drawing functions you must call FlipScreen() to see the image you have drawn.


See also

Personal tools