[etoys-dev] Etoys: Morphic-kfr.16.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Jun 26 11:31:09 EDT 2010


Bert Freudenberg uploaded a new version of Morphic to project Etoys:
http://source.squeak.org/etoys/Morphic-kfr.16.mcz

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

Name: Morphic-kfr.16
Author: kfr
Time: 14 June 2010, 12:04:14 am
UUID: dce814a2-a2fc-6742-ad86-9c10e120ef9e
Ancestors: Morphic-KR.15

Adds a Color Palette to the Objects Tool Graphics category. Can be used interactively for picking colors or for random color picking via scripting. The color palette is hard to get hold of as a object otherwise

=============== Diff against Morphic-KR.15 ===============

Item was added:
+ ----- Method: SketchMorph class>>newStandAlone (in category 'new-morph participation') -----
+ newStandAlone
+ 	^self asColorPalette:320 at 240 depth:16!

Item was added:
+ ----- Method: SketchMorph class>>asColorPalette:depth: (in category 'instance creation') -----
+ asColorPalette: anExtent depth: aDepth 
+ 	| form |
+ 	form := Color colorPaletteForDepth: aDepth extent: anExtent.
+ 	form := form
+ 				copy: (0 @ 21 corner: anExtent x - 20 @ anExtent y).
+ 	^ self withForm: form!

Item was added:
+ ----- Method: SketchMorph class>>descriptionForPartsBin (in category 'new-morph participation') -----
+ descriptionForPartsBin
+ 	^ self partName:	'Color Palette' translatedNoop
+ 		categories:		{'Graphics' translatedNoop} 
+ 		documentation:	'Display a palette of colors' translatedNoop!



More information about the etoys-dev mailing list