[Jprogramming] Monday Morning Wake Up Exercise

Linda A Alvord lindaalvord at verizon.net
Mon Jan 25 07:26:54 UTC 2016


This code makes 8 images. What are the two middle colors in 'Y Four' and the
two colors in 'B Four'?

 

load 'viewmat'

]Y=:3 3$255 255 255 255 255 0 0 0 0

Y viewmat 0;'Y One'

Y viewmat 0 1;'Y Two'

Y viewmat 0 1 2;'Y Three'

Y viewmat 0 1 2 3;'Y Four'

]B=:3 3$255 255 255 0 0 255 0 0 0

B viewmat 0;'B One'

B viewmat 0 1;'B Two'

B viewmat 0 1 2;'B Three'

B viewmat 0 1 2 3;'B Four'

 

Linda



More information about the Programming mailing list