⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 http:^^www.cs.utexas.edu^users^fussell^384gassignment1.html

📁 This data set contains WWW-pages collected from computer science departments of various universities
💻 HTML
字号:
MIME-Version: 1.0
Server: CERN/3.0
Date: Monday, 06-Jan-97 20:32:36 GMT
Content-Type: text/html
Content-Length: 2164
Last-Modified: Tuesday, 17-Sep-96 23:28:11 GMT

<HTML><HEAD><TITLE> Program 1 - Interactive Lines and Curves </TITLE></HEAD><BODY><CENTER><H1> Program 1 - Interactive Lines and Curves </H1></CENTER><P><CENTER><H2> Due - October 1 </H2></CENTER><P>You are to create an interactive program for drawing and erasing linesegments, circles, and quadratic curves using Bresenham's line andcircle drawing algorithms and the recursive Bezier/B-spline curvealgorithm given in class.  Line segments should be specified by givingtwo endpoints on the screen using a mouse.  Circles can be specifiedwith a center and a point on the circle, or by two points defining adiameter (or by another means if you prefer).  Quadratic curves shouldbe specified as a polyline, that is, as a sequence of control pointsgiven by the mouse.  There must be at least three control pointsprovided.  If there are more than three, then new implicit controlpoints must be generated to provide the correct number.  For instance,for four control points input, a new point midway between the secondand third control point must be created as the shared control pointfor two consecutive parabolic segments.  For more than four, generatethis new control point midway between the second and third controlpoints, then generate another one midway between the third and fourthcontrol points, etc. until you have split every original line segmentbetween input control points except the first and last in half withthe new, generated control points.  You will then have a set ofcontrol points which can be used to draw a smooth quadratic curvefitting the entire sequence of control points.<P>Do not use floating point arithmetic for drawing any of these primitives.<P>You should be able to erase any primitive by selecting one of its controlpoints in addition to doing the drawing specified above.<P>Your program should be implemented as a Tcl/Tk widget or equivalent.It should be able to handle window expose and resize events and toredraw all the primitives at a user's command.  You should not try toeliminate holes created in the drawing by any means other than allowingthe user to redraw.</BODY> </HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -