Code: Select all
on touchmove
set the backgroundColor of graphic "theColorPreview" to the mousecolor
put the mouseColor into thecolor
set the numberFormat to "###"
put formathex(baseConvert(item 1 of thecolor,10,16)) into R
put formathex(baseConvert(item 2 of thecolor,10,16)) into G
put formathex(baseConvert(item 3 of thecolor,10,16)) into B
put baseconvert (R,16,10) into rd
put baseconvert (G,16,10) into gd
put baseconvert (B,16,10) into bd
setsliders rd,gd,bd
end touchmove