Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!mintaka!olivea!uunet!munnari.oz.au!brolga!uqcspe!batserver.cs.uq.oz.au!warwick From: warwick@batserver.cs.uq.oz.au (Warwick Allison) Newsgroups: comp.graphics Subject: Comparing colours Summary: How do I compare 2 RGB colours for `similarity' Keywords: colour color compare Message-ID: <7388@uqcspe.cs.uq.oz.au> Date: 20 Feb 91 22:30:35 GMT Sender: news@uqcspe.cs.uq.oz.au Reply-To: warwick@batserver.cs.uq.oz.au Lines: 16 For use in anti-aliasing, I want to find the colour in a palette which most closely approximates a given RGB combination. At the moment, I find the palette colour with the smallest sum of absolute difference in Red, Green and Blue components. Does this sound like the best (ie. visually accurate) method? Please e-mail! Warwick. -- _ |\ warwick@batserver.cs.uq.oz.au / `-' * <-- Computer Science Department, \__--_/ University of Queensland, V AUSTRALIA.