Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!kth.se!cyklop.nada.kth.se!news From: d88-jwa@byse.nada.kth.se (Jon W{tte) Newsgroups: comp.sys.mac.programmer Subject: Re: A couple of color questions... Message-ID: Date: 30 Apr 91 18:34:30 GMT References: <1991Apr29.234748.27798@lynx.CS.ORST.EDU> Sender: news@nada.kth.se (Mr News) Organization: Royal Institute of Technology, Stockholm, Sweden Lines: 29 In-reply-to: boerned@mist.CS.ORST.EDU's message of 29 Apr 91 23:47:48 GMT In article <> boerned@mist.CS.ORST.EDU (Dan Boerner) writes: written my own. Everything is hunky-dory except my InvertFamilyIcon routine follows TN #55 and looks lame in color (the colors are inverted). I'd like to use the same algorithm that Finder 7.0 uses (dim the icon's palette down some So, has anyone already solved this problem or know how to? Any Finder 7.0 programmers out there? No Finder 7 programmer, but looking in IM gives some answers: RGBColor c = { 20000 , 20000 , 20000 } ; RGBColor q = { 0 , 0 , 0 } ; PenMode ( subPin ) ; RGBForeColor ( & c ) ; OpColor ( & q ) ; PenPat ( black ) ; PaintRect ( & iconRect ) ; If you don't like the look of subPin, try blend... Happy hacking, -- Jon W{tte h+@nada.kth.se - Power !