[Pkg] The Trunk: Graphics-jcg.142.mcz

commits at source.squeak.org commits at source.squeak.org
Tue Jul 13 01:34:35 UTC 2010


Joshua Gargus uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-jcg.142.mcz

==================== Summary ====================

Name: Graphics-jcg.142
Author: jcg
Time: 12 July 2010, 6:32:36.449 pm
UUID: 39e85033-5174-4b6d-bdbc-40cd4bf1078b
Ancestors: Graphics-wiz.141

Adjust Color>>duller so that it doesn't turn weakly-saturated colors to gray.  If you turn on "Colorful Windows", they now look like they're supposed to.

=============== Diff against Graphics-wiz.141 ===============

Item was changed:
  ----- Method: Color>>duller (in category 'transformations') -----
  duller
+ 	"Answer a darker, desaturated color.  If the original color isn't very saturated, desaturate it by less (otherwise will just end up with grey)."
+ 	| sat adjust |
+ 	(sat := self saturation) > 0.3
+ 		ifTrue: [adjust := -0.1]
+ 		ifFalse: [adjust := 0.1 - sat max: 0.0].
+ 	^ self adjustSaturation: adjust brightness: -0.1!
- 
- 	^ self adjustSaturation: -0.1 brightness: -0.1!



More information about the Packages mailing list