Skip to content

Instantly share code, notes, and snippets.

@brackendev
Created October 3, 2019 00:27
Show Gist options
  • Save brackendev/039f5d81399a9ac6e8f502528de15a93 to your computer and use it in GitHub Desktop.
Save brackendev/039f5d81399a9ac6e8f502528de15a93 to your computer and use it in GitHub Desktop.
[Pharo] Find image morphs
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