ARC support for ellipse draw
|
10-13-2015, 09:51 AM
Post: #9
|
|||
|
|||
RE: ARC support for ellipse draw
Tim,
in general I prefer to have a small number of commands. The compexity of parameter lists can be handled with the built-in help. I think it is easier to remember 20 clearly different commands than 40 slightly different commands. If two commands basically do the same thing they should be given the same name and be intelligent enough to decode the parameter types (method overloading). E.g. if only one radius value is given we would obtain a circle, if an array or list of two values is given we would see an ellipse. I think the old graphics interfaces in languages like Borland Turbo Pascal or C (the famous BGI), MS Quick-C and such (even FORTRAN for the PC) are useful examples of having a small but powerfull set of graphics functions. Also older graphics standars like CGI or GKS may be useful to get some ideas. Combined with coordinate system transformations (translate, scale, rotate), one has a complete set of drawing functions. The description should also be extensible to the 3rd dimension, even if not implemented now. Sometimes they have two sets of functions allowing to produce hollow shapes and filled shapes. Like DRAW_ARC and FILL_ARC. Sometimes both commands are merged and controlled via the argument list. I really would recommend to have a look at the old DOS languages. The description of the parameters common to all shapes (arc, pie, rectangle, polygon, ...) should be the same in style and order:
Same for other rotational transforms. Martin |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
ARC support for ellipse draw - Tim Wessman - 02-26-2015, 03:35 AM
RE: ARC support for ellipse draw - Han - 02-26-2015, 03:41 AM
RE: ARC support for ellipse draw - DrD - 02-26-2015, 06:02 PM
RE: ARC support for ellipse draw - Tim Wessman - 02-26-2015, 06:39 PM
RE: ARC support for ellipse draw - Han - 02-26-2015, 07:15 PM
RE: ARC support for ellipse draw - StephenG1CMZ - 10-07-2015, 12:21 PM
RE: ARC support for ellipse draw - Tyann - 10-07-2015, 07:21 PM
RE: ARC support for ellipse draw - Arno K - 10-07-2015, 08:17 PM
RE: ARC support for ellipse draw - Martin Hepperle - 10-13-2015 09:51 AM
|
User(s) browsing this thread: 2 Guest(s)