DrawDisk - theta = linspace(0,2*pi cosVals = cos(theta...

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

View Full Document Right Arrow Icon
function DrawDisk(xc,yc,r,c) % Adds a circular disk to the current window. % Assumes hold is on. % The disk has radius r, center(xc,yc) and % color c where c is one of 'r', 'g', 'y', etc.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: % theta = linspace(0,2*pi); cosVals = cos(theta); sinVals = sin(theta); fill(xc+r*cosVals,yc+r*sinVals,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.

Ask a homework question - tutors are online