Lively Kernel canvas // DraftStyleMenu40true createastylemenuforallmorphs....20null colorSetterMenuItems=function(colors,setterName){returnProperties.own(colors).select(function(colorName){returncolors[colorName]instanceofColor}).collect(function(colorName){return[colorName,function(){this[setterName](colors[colorName])}]})};this.colorSetterMenuItems(CrayonColors,'setFill')pos=WorldMorph.current().hands.last().getPosition();m=newCrayonColorChooserMorph()m.openInWorld(pos,"menuCrayonColorChooser");target=$morph('exampleObject')connect(m,'selectedColor',target,'setFill')145 Hello lemon false Wikicontroltruetrue null78