|
|
|||
|
Drawbox (Freeware) Drawbox is a lightweight, lighthearted package for graphics programming in C++. It is especially designed for student programmers, though others may find it useful. It is cross-platform, supporting both Macintosh and Windows, so that students can use whatever computer they have at school, and take their work home to whatever computer they have there. The programmer's interface is carefully designed for quick-start, low-overhead programming. All you need to get started is one #include and a main function, and the very first line of that function can be a drawing command. No visible setup required. There is only one window, and it does not need to be specified or named; it is implicit. Drawbox is an open-source effort. Programmers who want to add to the package itself are welcomed to do so; please send fixes and improvements back to ken@sparklight.com to be added to the main distribution. I would love to find someone interested in doing a port to Linux. This package is being maintained and improved in an ongoing way. Work is in progress to make quick, frequent releases possible. If you find bugs, please report them to: ken@sparklight.com. If you teach programmers, or if you've been wanting to do some lighthearted graphics programming yourself, download Drawbox and give it a try! Download
(Macintosh .sea, 1.5 MB) The archive you download actually contains the code and projects for a dual build, Macintosh and Windows. See the Setup directory for an easy way to remove what you don't need. If you actually want to use the dual build, download and unpack on a Macintosh to preserve file type information. I'm interested in having a small core of highly-involved testers, who plan to use the package and interact with me a lot. If you feel like being one of those, please speak up! Or if you are a less involved user, but would like to be on the mailing list for announcements of new releases, please speak up.
Why another graphics package? How fondly I remember the days of my first computer, and Apple II+. You could just sit down, write a few lines of Basic, and it would start drawing graphics for you. But with the advent of Macintosh, now followed by all other modern operating systems, the age of the GUI/window system has come. A lot of research went into the original Macintosh interface design, and it and its offspring have made programs much more user-friendly. But not programmer-friendly. In Windows it takes upwards of 40 lines of code, just to create a window that can interact with the system in a half-decent way. And then you're ready to start doing graphics. Drawbox is an attempt to bring back programmer-friendly graphics. No setup required, except one simple #include, and you're ready to go. I expect it to grow with time, to accommodate more of the typical window-system things--but never compromising the ability to do simple things simply, with very low overhead. Another virtue, though less of a priority, is low overhead in space. Drawbox can produce executables as small as 100K.
What's in the name? When a professional enters upon the project of programming in a new system, especially where graphics are involved, he is faced with the vast and complex world of an operating system. It has historical quirks, numerous system dependencies, and various data structures that the programmer must initialize and use, although they are really only needful for complex programs, not simple ones. The beginning student must be protected from all this. We need to build a "sandbox," a safe, confined environment in which the student can enjoy graphics while being protected from the quirks and the complexity. Drawbox is such a box, designed for students of beginning to intermediate skill.
Drawbox Resources for Teachers Marine Biology Case Study
SortWatcher
An Introduction to Recursion
|
![]()
![]()
![]()
![]()
![]()