DrawRectangle

Draws a rectangle onto a drawable.

Synopsis

#include "draw.h" 
int DrawRectangle(Draw draw,PetscReal xl,PetscReal yl,PetscReal xr,PetscReal yr,int c1,int c2,int c3,int c4)
Not Collective

Input Parameters

draw - the drawing context
xl,yl,xr,yr - the coordinates of the lower left, upper right corners
c1,c2,c3,c4 - the colors of the four corners in counter clockwise order

Keywords

draw, rectangle

Level:beginner
Location:src/sys/src/draw/interface/drect.c
Graphics (Draw) Index
Table of Contents