Color.st
changeset 7411 9fdde791fac0
parent 7403 9a4c5d6da62c
child 7430 18c923f3050d
--- a/Color.st	Tue Jul 12 16:53:52 2016 +0200
+++ b/Color.st	Thu Jul 14 20:51:37 2016 +0200
@@ -1374,7 +1374,7 @@
      where larger values are more saturated or brighter colors.
      For example, (Color h: 0 s: 1 v: 1) is pure red."
 
-    "Note: By convention, brightness is abbreviated 'v' to to avoid confusion with blue."
+    "Note: By convention, brightness is abbreviated 'v' to avoid confusion with blue."
 
     ^ self hue:hue light:(brightness*50) saturation:(saturation*100)
 !
@@ -4155,7 +4155,7 @@
     ^ h
 
     "
-     Color red hue    
+     Color red hue
      Color yellow hue
     "
 
@@ -4503,8 +4503,8 @@
 asByteArray
     ^ByteArray
             with: self redByte
-            with: self greenByte  
-            with: self blueByte  
+            with: self greenByte
+            with: self blueByte
 !
 
 fromLiteralArrayEncoding:encoding
@@ -4519,9 +4519,9 @@
 
     encoding size == 2 ifTrue:[
         nameOrRGB := encoding at:2.
-        nameOrRGB isSymbol ifTrue:[ 
+        nameOrRGB isSymbol ifTrue:[
             clr := Color perform:nameOrRGB
-        ] ifFalse:[ 
+        ] ifFalse:[
             clr := Color rgbValue:nameOrRGB.
         ].
         red := clr scaledRed.
@@ -4534,9 +4534,9 @@
     ].
 
     "
-      Color new fromLiteralArrayEncoding:#(#Color 50 25 25)  
-      Color new fromLiteralArrayEncoding:#(#Color 16rFF00FF) 
-      Color new fromLiteralArrayEncoding:#(#Color blue)      
+      Color new fromLiteralArrayEncoding:#(#Color 50 25 25)
+      Color new fromLiteralArrayEncoding:#(#Color 16rFF00FF)
+      Color new fromLiteralArrayEncoding:#(#Color blue)
     "
 !
 
@@ -4549,9 +4549,9 @@
 
     ^ Array
         with:self class name
-        with:((red * 100.0 / MaxValue) roundTo:0.25) 
-        with:((green * 100.0 / MaxValue) roundTo:0.25) 
-        with:((blue * 100.0 / MaxValue) roundTo:0.25) 
+        with:((red * 100.0 / MaxValue) roundTo:0.25)
+        with:((green * 100.0 / MaxValue) roundTo:0.25)
+        with:((blue * 100.0 / MaxValue) roundTo:0.25)
 
     "
       Color new fromLiteralArrayEncoding:#(#Color 50 25 25)
@@ -5410,7 +5410,7 @@
     "return the distance of the receiver from some color specified
      by r/g/b values.
      A very questionable value;
-     basing the distance on rgb values is very bad 
+     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