[squeak-dev] The Trunk: Morphic-kfr.2014.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Jan 11 12:52:39 UTC 2023
Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-kfr.2014.mcz
==================== Summary ====================
Name: Morphic-kfr.2014
Author: kfr
Time: 30 June 2022, 9:36:19.692057 pm
UUID: 7bfd969f-17fb-c347-bcc6-3b6c2523990f
Ancestors: Morphic-mt.2013
Prevent accidental use of reducing color on 32 bit depth SketchMorph
=============== Diff against Morphic-mt.2013 ===============
Item was changed:
----- Method: SketchMorph>>reduceColorPalette: (in category 'menu') -----
reduceColorPalette: evt
"Let the user ask for a reduced number of colors in this sketch"
| str nColors |
+ originalForm depth > 16 ifTrue:[^self inform:'Not possible for pictures of 32 bit depth' translated].
str := UIManager default
request: 'Please enter a number greater than one.
(note: this cannot be undone, so answer zero
to abort if you need to make a backup first)' translated
initialAnswer: '256'.
nColors := Integer readFrom: (ReadStream on: str).
(nColors between: 2 and: 256) ifFalse: [^ self].
originalForm := originalForm copyWithColorsReducedTo: nColors.
rotatedForm := nil.
self changed!
More information about the Squeak-dev
mailing list
|