LockerGnomeTech news and nostalgia for today's technology professionals
Subscribe

Search

Retroapplequickdrawinterface-history

A No-Parking Sign Helped Convince Apple to Draw Rounded Rectangles

The 68000 made even basic curves expensive. Bill Atkinson’s arithmetic shortcut explains why a familiar street shape became an engineering argument in 1981.

Art Nouveau of Chris Pirillo: he points triumphantly at a rounded-corner no-parking sign on a street corner
Illustration: LockerGnome

Bill Atkinson had made the computer draw ovals quickly. Steve Jobs wanted rounded rectangles too. The argument eventually required a walk around the block, with the street supplying the visual examples the demo had left out.

Hertzfeld’s account of the exchange is dated May 1981, when QuickDraw was still called LisaGraf. Atkinson brought his fast ovals into Apple’s offices at Texaco Towers to show them off.

Curves cost something on that hardware. The 68000 processor in the Lisa and Macintosh lacked floating-point operations, and even the multiplication and division it could do were relatively slow. Atkinson used the relationship between consecutive odd numbers and perfect squares to draw his ovals with addition and subtraction. The arithmetic let him work out where to move the curve without paying for a square root at each step.

Jobs wanted a shape people already encountered on desks and whiteboards. Hertzfeld records Atkinson’s initial objection as “really hard to do.” Jobs took him outside, where the no-parking sign got him to reconsider. He returned the following afternoon with the RoundRects routine running almost as fast as ordinary rectangles.

The Computer History Museum’s source-code release shows how much software sat beneath those familiar shapes. The preserved QuickDraw library contains 17,101 lines in 36 files, all 68000 assembler. MacPaint and other applications used it to create bitmap graphics. Sharing those routines gave each application access to the same drawing machinery.

The anecdote can make the work sound like a test of who could be more persistent. Atkinson had already done the difficult arithmetic that made the conversation possible. Jobs supplied a specific reason to investigate another shape. Both contributions matter when your computer has to draw the result while somebody waits with a mouse in hand.

Atkinson’s appetite for smaller, faster machinery appears again in Hertzfeld’s February 1982 account of a productivity form. Lisa managers wanted each engineer to report the number of lines written every week. Atkinson had just rewritten QuickDraw’s region calculations with a simpler, more general algorithm. Hertzfeld says the operations ran almost six times faster and the code shrank by about 2,000 lines.

Atkinson entered “-2000” on the form. After a few more weeks, the managers stopped asking him to fill it out. A measure that rewards typing has trouble with a person improving software by removing it. You can almost hear the spreadsheet requesting a positive number.

That second episode puts the sign walk in useful company. A demand for a visual detail still has to survive the machine’s performance limits; a demand for visible productivity still has to survive what the program actually needs. Rounded corners became practical because somebody changed the implementation, and region calculations improved when somebody simplified one.

A future design review could borrow that division of labor: show the thing, make the smallest working version, and find out what it costs. Hertzfeld supplies the speed comparison and the next-day turnaround, but no timings or original rejected implementation. The open question for the next rounded-corner request is what the target hardware will actually spend drawing it.

More Retro

Every Retro story →