# HG changeset patch # User Claus Gittinger # Date 1424608263 -3600 # Node ID 7babceb912989c5252090b9bb6c02ef06767a9f6 # Parent 8272fd4450b1478643c7da6468b34b540ea00796 class: Color comment/format in: #deltaFrom: diff -r 8272fd4450b1 -r 7babceb91298 Color.st --- a/Color.st Sat Feb 21 13:08:24 2015 +0100 +++ b/Color.st Sun Feb 22 13:31:03 2015 +0100 @@ -11,6 +11,8 @@ " "{ Package: 'stx:libview' }" +"{ NameSpace: Smalltalk }" + Object subclass:#Color instanceVariableNames:'red green blue device colorId ditherForm replacementColor writable' @@ -5402,7 +5404,10 @@ deltaFrom:aColor "return the distance of the receiver from some color specified - by r/g/b values" + by r/g/b values. + A very questionable value; + basing the distance on rgb values is very bad + - better do a distance in a cie color cone" ^ aColor deltaFromRed:self red green:self green blue:self blue @@ -5620,11 +5625,11 @@ !Color class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.236 2014-12-09 15:36:50 cg Exp $' + ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.237 2015-02-22 12:31:03 cg Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.236 2014-12-09 15:36:50 cg Exp $' + ^ '$Header: /cvs/stx/stx/libview/Color.st,v 1.237 2015-02-22 12:31:03 cg Exp $' ! !