![]() ![]() DESCRIPTION In this assignment, you will design and build a program that stores an arbitrary sequence of commands that manipulate and use a drawing list. A drawing list is used to produce a graphical scene, e.g. I show you how to use WorldEdit in Minecraft by going through some Basic WorldEdit commands to improve your Building skillsIn todays episode of WorldEdit Bas. While it would be fun to actually draw the shapes that we will store and manipulate in our list, we shall instead focus only on the creation and maintenance of the drawing list. The commands that your program will be able to process are: CREATE RECTANGLE is the required width of the rectangle.is the required height of the rectangle.The origin of a created rectangle is the upper left-hand corner at (0,0). ![]() The color of a created rectangle is Red CREATE CIRCLE.If no shape is selected then output “no shape selected” to the console DRAW.At most one shape can be selected at a time Calling SELECT on a shape that does not exist in the list will produce the following error message "ERROR: invalid shape for SELECT” MOVE Moves the currently selected shape's origin to the specified (x,y).If the shape number is i, then the i-th created shape is selected.n is the total number of shapes created before this command.Selects a shape to use with future commands MOVE, DRAW, COLOR, DELETE.The color of a created circle is Blue SELECT (any shape number from 1.n].The origin of a created circle is the center at (0,0). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |