Shape;
BoundingRectangle(1,1);
// This file draws a condition box with a red box and green conditional.

SolidBrush(RGB(255,0,0));

pt0.x = left;
pt0.y = top;

pt1.x = right;
pt1.y = top;

pt2.x = right;
pt2.y = bottom;

pt3.x = midx +grid/2;
pt3.y = bottom;

pt4.x = midx;
pt4.y = bottom +grid;

pt5.x = midx -grid/2;
pt5.y = bottom;

pt6.x = left;
pt6.y = bottom;

pt7.x = left;
pt7.y = top;

Polygon(8);

SolidBrush(RGB(0,255,0));

pt0.x = midx; 
pt0.y = bottom +grid;

pt1.x = midx +grid/2; 
pt1.y = bottom;

pt2.x = midx;
pt2.y = bottom -grid;

pt3.x = midx -grid/2;
pt3.y = bottom;

pt4.x = midx;
pt4.y = bottom +grid;

Polygon(5);

 