The Trunk: Graphics-mt.313.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Graphics-mt.313.mcz

commits-2
Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.313.mcz

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

Name: Graphics-mt.313
Author: mt
Time: 10 May 2015, 2:04:07.524 pm
UUID: 99af1adc-65b3-5549-8d10-ab452e0c59e5
Ancestors: Graphics-mt.312

Conveniently adjust saturation or brightness of forms.

=============== Diff against Graphics-mt.312 ===============

Item was added:
+ ----- Method: Form>>adjustBrightness: (in category 'converting') -----
+ adjustBrightness: brightness
+
+ ^ self collectColors: [:color | color adjustSaturation: 0 brightness: brightness]!

Item was added:
+ ----- Method: Form>>adjustSaturation: (in category 'converting') -----
+ adjustSaturation: saturation
+
+ ^ self collectColors: [:color | color adjustSaturation: saturation brightness: 0]!