7 ms·
One of the things that landed in my lap early on (System 8?) at Apple was the color picker. We were moving to PPC (PowerPC) and much of the HSL (hue, saturation
by JKCalhoun 4y ago
One of the things that landed in my lap early on (System 8?) at Apple was the color picker. We were moving to PPC (PowerPC) and much of the HSL (hue, saturation, lightness)picker (HSV, hue, saturation, value?) was in raw 68K assembly.
Having never written assemble (68K or otherwise), I knew I was out of my league ... but I persisted.
Line by line, I replaced the assembler code with straight C. I was able to scare up a Motorola 68K assembler book around Apple and I recall that there was one assembler code I could not find: it turned out that it was a 68020-specific operator (and since we're talking color picker I suppose an '020 could be assumed — some kind of bit-shift-with-mask or some such weirdness, FWIW).
(I guess each pixel of the "color wheel" was a rather complex calculation that someone had found benefitted from a straight assembler implementation — keep in mind you could slide the brightness/value slider and the wheel would redraw in real-time on those underpowered Macs.)
Apart from getting the assembler over to straight C so the PPC compiler could have something to compile I also had to move over the API. Color pickers were plug-ins and had a couple of calls that, again, I believe had a different signature on PPC.
To learn the API and test it I wrote an HTML color picker that was essentially an RGB picker that gave you hex values instead of 0-255. Further I did a crayon picker as sample code (I thought this was kind of "Mac-like", right?).
I was a bit surprised when the HTML and Crayon pickers shipped. Then, much later, when someone ending up "porting" the crayon picker to Mac OS X I suddenly had regrets at having not spent more time coming up with good names for the crayons. (There was a general pattern though: naming the grayscale colors after minerals for example.)
I was almost fired I think though when my crayon picker shipped and it got out that I had slipped some T.S. Eliot quotes into the resource names in the Color Picker modules. I was called "into the office" and told that I had fucked up.
It's true though, I had fucked up. I had let the "Easter egg" thing get to my head and wanted to leave my mark. I think they had to quickly rev the OS after stripping out the offending T.S. Eliot quotes.
(There may though have still be an Easter egg lying around where the crayons would wear down until Jan 1 when they would be restored to full size.)
(Also, that was the first time I almost got fired. The second time would come when I was on the Photos team some 15 or so years later.)
- LeoPanthera 4y ago> (There may though have still be an Easter egg lying around where the crayons would wear down until Jan 1 when they would be restored to full size.) Missed opportunity to receive "new" crayons on Christmas Day!
- JKCalhoun 4y agoMight have been Christmas Day. ;-)
- rhn_mk1 4y agoWere the quotes offensive, or was it just a case of someone having a stick up their behind?
- JKCalhoun 4y agoYeah, I suppose the latter. Apple was super-cautious (even then) about copyright violation (even though it was clearly outside copyright). I was too big for my britches. “We have lingered in the chambers of the sea By sea-girls wreathed with seaweed red and brown Till human voices wake us... and we drown.” (Maybe I should add that Apple was sort of circling the drain about this time. I wondered if it was the last OS we would ship and there was a kind of sadness if that were the case. Somehow the line resonated with me at the time — I felt we were a little like "drowners" (that would probably be more of a Suede reference).)
- _zzaw 4y agoFor whatever it's worth, people like you are why I stuck with Apple even when they were headed for bankruptcy. Quirky, human stuff like the crayon picker (which I remember a lot of people loved; the weardown effect especially) and easter eggs (which I spent much of my childhood hunting for in ResEdit) really defined the Mac experience for me at that point. It was one of the few platforms I can think of that actually had a sense of character. I've been wondering this for 25 years: how did you generate the crayons? They were pretty realistic.
- 4y ago