Created
October 3, 2019 00:27
-
-
Save brackendev/039f5d81399a9ac6e8f502528de15a93 to your computer and use it in GitHub Desktop.
[Pharo] Find image morphs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ImageMorph allInstances do: [ :im | | |
im bounds origin x = 0 & im bounds origin y = 0 & | |
im bounds corner x = 1 & im bounds corner y = 1 & | |
im height = 1 & im width = 1 | |
ifTrue: [ im inspect] | |
]. | |
ImageMorph allInstances collect: [ :im | | |
im bounds origin x = 0 & im bounds origin y = 0 & | |
im bounds corner x = 1 & im bounds corner y = 1 & | |
im height = 1 & im width = 1 | |
ifTrue: [ im height = 100. im width = 100 ] | |
]. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment