Lively Kernel canvas
Web-basedDevelopmentEnvironments201018nullnull
40nullnull
GrayColorChooser40nulltrue
truetrue
prevfalsenullfalsetrue
nextfalsenullfalsetrue
10000.02252841099019836Wikicontroltrue
10000.001617432472254143Wikicontroltrue
10001.3452889277020308e-15Wikicontroltrue
10000.004953196189927134Wikicontroltrue
100012.42062550251638Wikicontroltrue
255null
null77.4435true77.4435
77
truetrue
truetrue
//1.addText,Slider,andRectangle//2.renamethem//3.arrangethemandsetproperies(disablehandle)//experimentwithinstances...$morph('grayScale').valueScale=255disconnectAll($morph('grayScale'))connect($morph('grayScale'),'value',$morph('grayScaleText'),'setTextString',"function(value){returnString(Math.round(value))}")connect($morph('grayScale'),'value',$morph('colorPreview'),'setFill',function(value){returnColor.rgb(value,value,value)}).update()//4.bidirectionalTexttoSlider//maketheTextMorphintoaninputline(thatprovidesansavedTextString)$morph('grayScaleText').beInputLine()connect($morph('grayScaleText'),'savedTextString',$morph('grayScale'),'setValue',"function(value){returnMath.max(0,Math.min(value,255))}")
nulltrue1815truetruefalsetruetruefalse
false1truefalsetruetruetruefalse
nullfalsetruenullfalse
Workspacefalsenullfalse
false
false
falsenullfalsefalsenullnullnullnullfalse
null81