{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

446proj6 - plot[x(i,1,x(i,2[y(i,1,y(i,2,’g:’...

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

View Full Document Right Arrow Icon
MATH 446 / OR 481 SAUER SPRING 2010 Project 6 B´ezier Curves and the Times Font Design and plot one of the following three lower case Times characters using B´ezier curves, including the endpoints plotted as circles and all control points plotted as squares: gmu You should plot the character as an “outline font”. Here is a Matlab code fragment that plots the Times letter o, to help you get started: plot([0 3],[0 0],’k’,[0 0],[0 3],’k’); hold on x=[1 0 0 1;1 2 2 1;1 .3 .3 1;1 1.7 1.7 1]; y=[2 2 0 0;0 0 2 2;1.95 1.95 .05 .05;.05 .05 1.95 1.95]; numcurves=4; t=0:.002:1; for i=1:numcurves plot(x(i,1),y(i,1),’ro’,x(i,4),y(i,4),’ro’)
Image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: plot([x(i,1),x(i,2)],[y(i,1),y(i,2)],’g:’) plot([x(i,3),x(i,4)],[y(i,3),y(i,4)],’g:’) plot(x(i,2),y(i,2),’gs’,x(i,3),y(i,3),’gs’) % some code needed here xp=x(i,1)+bx * t+cx * t. * t+dx * t.ˆ3; yp=y(i,1)+by * t+cy * t. * t+dy * t.ˆ3; plot(xp,yp,’k’) end axis square hold off Plot two versions, one with all endpoints and control points plotted as above, and another with just the curves. Include all Matlab code used in the plots. Extra Credit: Up to 2 extra points may be awarded for each additional letter. Do not attempt extra credit until your first letter is perfect. Due: Tues., Apr. 27...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern