#DOCUMENTATION by mawalch
authormawalch
Thu, 15 Sep 2016 19:46:44 +0200
changeset 7569 872e25793b0e
parent 7568 29c8bc0cfa05
child 7570 b05dae395ad5
#DOCUMENTATION by mawalch class: Color comment/format in: #hue:light:saturation:
Color.st
--- a/Color.st	Wed Sep 14 17:50:33 2016 +0200
+++ b/Color.st	Thu Sep 15 19:46:44 2016 +0200
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
  COPYRIGHT (c) 1992 by Claus Gittinger
 	      All Rights Reserved
@@ -996,14 +994,14 @@
 
 hue:h light:l saturation:s
     "return a color from hue, light and saturation values.
-     Hue is in degrees (0..360); light and sturation are
+     Hue is in degrees (0..360); light and saturation are
      in percent (0..100)"
 
     self withRGBFromHue:h light:l saturation:s do:[:r :g :b |
-	^ self
-	    redPercent:(r clampBetween:0 and:100)
-	    greenPercent:(g clampBetween:0 and:100)
-	    bluePercent:(b clampBetween:0 and:100)
+        ^ self
+            redPercent:(r clampBetween:0 and:100)
+            greenPercent:(g clampBetween:0 and:100)
+            bluePercent:(b clampBetween:0 and:100)
     ]
 
     "