color.mal
来自「一个内存数据库的源代码这是服务器端还有客户端」· MAL 代码 · 共 53 行
MAL
53 行
function testcolor(); c:= color.rgb(100,101,102); io.print(c); V38 := color.red(c); io.print(V38); V41 := color.green(c); io.print(V41); V44 := color.blue(c); io.print(V44); V47 := color.hsv(90.0,0.5,1.0); c := V47; color.print(c); # don't print hue, saturation, and value: architectural differences can # cause differences in the output produced. instead, use them to produce # a new color which should be the same as the original color # print(hue(c)); # print(saturation(c)); # print(value(c)); V62 := color.hue(c); V63 := color.saturation(c); V64 := color.value(c); V61 := color.hsv(V62,V63,V64); color.print(V61); V66 := color.ycc(200,100,50); c := V66; color.print(c); V73 := color.luminance(c); io.print(V73); V76 := color.cr(c); io.print(V76); V79 := color.cb(c); io.print(V79); V82 := color.color("0x0012ABcd"); c := V82; color.print(c); V88 := color.red(c); io.print(V88); V91 := color.green(c); io.print(V91); V94 := color.blue(c); io.print(V94); bc:= bat.new(:oid,:color); bat.append(bc,"0x00000000":color); bat.append(bc,"0x0033ff44":color); bat.append(bc,"0x00003f44":color); io.print(bc); z:= batcolor.red(bc); io.print(z);end testcolor; user.testcolor();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?