Bert, This is a good idea too. kh
---- Original message ----
Date: Sat, 26 Jun 2010 15:30:29.458 0000 From: commits@source.squeak.org Subject: [etoys-dev] Etoys: Morphic-kfr.16.mcz To: etoys-dev@squeakland.org
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@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!
etoys-dev mailing list etoys-dev@squeakland.org http://lists.squeakland.org/mailman/listinfo/etoys-dev
etoys-dev@lists.squeakfoundation.org