📄 color.mal
字号:
#line 42 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/atoms/color.mx"module color;atom color:int;command tostr():str address color_tostr;command fromstr():color address color_fromstr;command print(c:color)address CLRprintf;command printf(s:str, c:color)address CLRprintf2;command str(s:color):straddress CLRstrcomment "Converts color to string ";command color(s:str):coloraddress CLRcolorcomment "Converts string to color";command rgb(r:int, g:int, b:int):color address CLRrgbcomment "Converts an RGB triplets to a color atom";command red (c:color) :int address CLRredcomment "Extracts red component from a color atom";command green(c:color) :int address CLRgreencomment "Extracts green component from a color atom";command blue (c:color) :int address CLRbluecomment "Extracts blue component from a color atom";command hue(c:color) :int address CLRhueIntcomment "Extracts hue component from a color atom";command saturation(c:color) :intaddress CLRsaturationIntcomment "Extracts saturation component from a color atom";command value(c:color) :int address CLRvalueIntcomment "Extracts value component from a color atom";command hsv(h:flt,s:flt, v:flt) :color address CLRhsvcomment "Converts an HSV triplets to a color atom";command hue(c:color) :flt address CLRhuecomment "Extracts hue component from a color atom";command saturation(c:color) :flt address CLRsaturationcomment "Extracts saturation component from a color atom";command value(c:color) :flt address CLRvaluecomment "Extracts value component from a color atom";command ycc(y:int,cr:int,cb:int) :color address CLRycccomment "Converts an YCC triplets to a color atom";command luminance (c:color) :int address CLRluminancecomment "Extracts Y(luminance) component from a color atom";command cr(c:color) :int address CLRcrcomment "Extracts Cr(red color) component from a color atom";command cb(c:color) :int address CLRcbcomment "Extracts Cb(blue color) component from a color atom";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -