DrawRect - % and (a,b+W) and color c where c is one of 'r',...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
function DrawRect(a,b,L,W,c) % Adds a rectangle to the current window. % Assumes hold is on. % The rectangle has vertices (a,b), (a+L,b), (a+L,b+W),
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % and (a,b+W) and color c where c is one of 'r', 'g', 'y', 'b', 'w', etc. x = [a a+L a+L a a]; y = [b b b+W b+W b]; fill(x,y,c);...
View Full Document

This note was uploaded on 09/12/2009 for the course CS 100 taught by Professor Fan/vanloan during the Fall '07 term at Cornell University (Engineering School).

Ask a homework question - tutors are online