Skip to main content
4 of 4
added 20 characters in body
flawr
  • 44.1k
  • 7
  • 109
  • 253

Octave, 37 31 26 bytes

This function performs a morphological erosion on the Astan (1-b) part of the "image" using conv2 imerode, and then uses some arithmetic to make all three areas different symbols. Thanks @LuisMendo for -5 bytes!

@(b)2*b-imerode(b,ones(3)) 

Try it online!

flawr
  • 44.1k
  • 7
  • 109
  • 253