亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mmsetc.m

?? 對于精通掌握matlab非常有用的資料
?? M
?? 第 1 頁 / 共 2 頁
字號:
function C=mmsetc(H,S)%MMSETC Obtain an RGB Triple Interactively from a Color Sample.% MMSETC displays a dialog box for the user to select% a color interactively and displays the result.%% X = MMSETC returns the selected color in X.%% MMSETC([r g b]) uses the RGB triple as the initial% RGB value for modification.%% MMSETC C  -or-% MMSETC('C') where C is a color spec (y,m,c,r,g,b,w,k), uses % the specified color as the initial value.%% MMSETC(H) where the input argument H is the handle of% a valid graphics object that supports color, uses the color% property of the object as the initial RGB value.%% MMSETC select   -or- % MMSETC('select') waits for the user to click on a valid % graphics object that supports color, and uses the color% property of the object as the initial RGB value.%       % If the initial RGB value was obtained from an object or% object handle, the 'Done' pushbutton will apply the % resulting color property to the selected object.%% If no initial color is specified, black will be used.%% Examples:%        mmsetc%        mycolor=mmsetc%        mmsetc([.25 .62 .54])%        mmsetc(H)%        mmsetc g%        mmsetc red%        mmsetc select%        mycolor=mmsetc('select')%%   The second argument S is used internally to execute the callbacks.% B.R. Littlefield, University of Maine, Orono, ME 04469% 3/2/95% Copyright (c) 1996 by Prentice-Hall, Inc.%======================================================================% define some strings, and start error checking.%======================================================================global MMSETC_OUT MMSETC_DONEermsg1 = 'Too many input arguments.';ermsg2 = 'Input argument if used must be an RGB triple or valid handle.';if nargin > 2, error(ermsg1); end%======================================================================%  This section handles the 'no argument' case and sets the defaults.%======================================================================if nargin == 0   m = 0;   initrgb = [0 0 0];  Hx_obj = 0;end%======================================================================% Here the function was called with a single argument.  Check for % a valid RGB triple or an object handle and bail out if invalid.% Set the initial color value if H is valid.%======================================================================if nargin == 1   %--------------------------------------------------------------------   %  If H is 'select', get the color property of the selected object  %  and use it for the initial color.  %--------------------------------------------------------------------   if isstr(H)    m = 1;    Hx_obj = 0;    if strcmp(H,'select')      waitforbuttonpress;      Hx_obj = get(gcf,'CurrentObject');      initrgb = get(Hx_obj,'Color');      if isstr(initrgb)        initrgb = [0 0 0];      end    elseif strcmp(H(1:1),'r'), initrgb = [1 0 0];    elseif strcmp(H(1:1),'y'), initrgb = [1 1 0];    elseif strcmp(H(1:1),'g'), initrgb = [0 1 0];    elseif strcmp(H(1:1),'m'), initrgb = [0 1 1];    elseif strcmp(H(1:1),'b'), initrgb = [0 0 1];    elseif strcmp(H(1:1),'w'), initrgb = [1 1 1];    elseif strcmp(H(1:1),'k'), initrgb = [0 0 0];    else      error(ermsg2);     end    %--------------------------------------------------------------------   %  Otherwise H should be an RGB triple or an object handle.  %--------------------------------------------------------------------   else    [n m]=size(H);    if n ~= 1, error(ermsg2); end       %--------------------------------------------------------------------     %  If H is a valid RGB row vector, use it for the initial color.    %--------------------------------------------------------------------     if m == 3 & max(H) <= 1 & min(H) >= 0        Hx_obj = 0;      initrgb = H;     %--------------------------------------------------------------------     %  If H is a single number, it should be an object handle.    %  If the object has no 'color' property, get() will exit     %  with an error message.    %--------------------------------------------------------------------     elseif m == 1         Hx_obj = H;      initrgb = get(Hx_obj,'color');      if isstr(initrgb)        initrgb = [0 0 0];      end       %--------------------------------------------------------------------     %  Otherwise, H is invalid, so bail out.    %--------------------------------------------------------------------       else      error(ermsg2);    end  endend  %======================================================================% Do the initialization if this is a user call (zero or one arguments).%======================================================================if nargin < 2   MMSETC_OUT = initrgb;  MMSETC_DONE = 0;  %--------------------------------------------------------------------  % First, get a figure window, and set some properties.  %--------------------------------------------------------------------  scr = get(0,'screensize');  Hf_fig = figure('pos',[(scr(3)/2)-220 (scr(4)/2)-165 440 330],...      'color',[.75 .75 .75],...    'numbertitle','off',...    'name','Color Selector');  %--------------------------------------------------------------------  % Set some default properties for uicontrols in this figure.  %--------------------------------------------------------------------  set(Hf_fig,'DefaultUicontrolUnits','normalized',...    'DefaultUicontrolBackgroundColor',get(Hf_fig,'color'));  %--------------------------------------------------------------------  % Now that we have an initial RGB value, get the initial HSV value  % so we can initialize the sliders.  %--------------------------------------------------------------------  inithsv = rgb2hsv(initrgb);  %--------------------------------------------------------------------  % Define the 'initial' and 'new' color frames, and label them.  %--------------------------------------------------------------------  Hc_ifr = uicontrol(Hf_fig,'style','frame',...    'pos',[.25 .70 .25 .20],...    'backgroundcolor',initrgb);   Hc_nfr = uicontrol(Hf_fig,'style','frame',...    'pos',[.50 .70 .25 .20],...    'backgroundcolor',initrgb);   Hc_ilabel = uicontrol(Hf_fig,'style','text',...    'pos',[.25 .91 .25 .05],...    'string','Initial Color');  Hc_nlabel = uicontrol(Hf_fig,'style','text',...    'pos',[.50 .91 .25 .05],...    'string','New Color');  %--------------------------------------------------------------------  % Get the color values, and display them under the frames.  %--------------------------------------------------------------------  Hc_icur = uicontrol(Hf_fig,'style','text',...    'pos',[.25 .64 .25 .05],...    'string',sprintf('[%.2f %.2f %.2f]',get(Hc_ifr,'backgroundcolor')));  Hc_ncur = uicontrol(Hf_fig,'style','text',...    'pos',[.50 .64 .25 .05],...    'string',sprintf('[%.2f %.2f %.2f]',get(Hc_nfr,'backgroundcolor')));  %--------------------------------------------------------------------  % Define the sliders with labels and current value displays.  %--------------------------------------------------------------------  Hc_rsli = uicontrol(Hf_fig,'style','slider',...    'pos',[.10 .55 .35 .05],...    'min',0,'max',1,'val',initrgb(1),...    'callback','mmsetc(0,''rgb2new'')');      Hc_rcur = uicontrol(Hf_fig,'style','text',...    'pos',[.01 .55 .08 .05],...    'string',sprintf('%.2f',get(Hc_rsli,'val')));  Hc_rlabel = uicontrol(Hf_fig,'style','text',...    'pos',[.10 .49 .35 .05],...    'string','Red');  Hc_gsli = uicontrol(Hf_fig,'style','slider',...    'pos',[.10 .43 .35 .05],...    'min',0,'max',1,'val',initrgb(2),...    'callback','mmsetc(0,''rgb2new'')');      Hc_gcur = uicontrol(Hf_fig,'style','text',...    'pos',[.01 .43 .08 .05],...    'string',sprintf('%.2f',get(Hc_gsli,'val')));  Hc_glabel = uicontrol(Hf_fig,'style','text',...    'pos',[.10 .37 .35 .05],...    'string','Green');  Hc_bsli = uicontrol(Hf_fig,'style','slider',...    'pos',[.10 .30 .35 .05],...    'min',0,'max',1,'val',initrgb(3),...    'callback','mmsetc(0,''rgb2new'')');      Hc_bcur = uicontrol(Hf_fig,'style','text',...    'pos',[.01 .30 .08 .05],...    'string',sprintf('%.2f',get(Hc_bsli,'val')));  Hc_blabel = uicontrol(Hf_fig,'style','text',...    'pos',[.10 .24 .35 .05],...    'string','Blue');  Hc_hsli = uicontrol(Hf_fig,'style','slider',...    'pos',[.55 .55 .35 .05],...    'min',0,'max',1,...    'val',inithsv(1),...    'callback','mmsetc(0,''hsv2new'')');      Hc_hcur = uicontrol(Hf_fig,'style','text',...    'pos',[.91 .55 .08 .05],...    'string',sprintf('%.2f',get(Hc_hsli,'val')));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲h在线观看| 国产制服丝袜一区| 欧美激情中文字幕| 欧美一区二区三区在线| 7777女厕盗摄久久久| 欧美日韩一区二区三区在线看| 99久久国产综合精品色伊| www.日本不卡| 在线观看91视频| 欧美日韩和欧美的一区二区| 欧美高清视频一二三区| 欧美一区中文字幕| 精品蜜桃在线看| 国产日韩欧美精品一区| 国产女主播在线一区二区| 国产日产欧美一区二区三区| 国产精品嫩草影院av蜜臀| 欧美激情综合在线| 国产精品福利一区| 亚洲主播在线观看| 亚洲午夜久久久| 九一久久久久久| 狠狠狠色丁香婷婷综合激情 | 精品日本一线二线三线不卡| 欧美精品久久99久久在免费线| 在线成人av网站| 精品剧情在线观看| 国产校园另类小说区| 亚洲乱码国产乱码精品精98午夜| 午夜精品福利久久久| 精品午夜一区二区三区在线观看 | 国产白丝精品91爽爽久久| 色哟哟精品一区| 欧美mv和日韩mv国产网站| 国产精品国产精品国产专区不片| 一区二区三区产品免费精品久久75| 日韩av一区二区三区| 99久久伊人网影院| 884aa四虎影成人精品一区| 国产日韩高清在线| 亚洲成人av电影| 国产成人在线影院| 欧美卡1卡2卡| 国产精品蜜臀av| 热久久一区二区| 国产成人综合在线观看| 色狠狠一区二区| 亚洲国产精品av| 美国精品在线观看| 色94色欧美sute亚洲线路二| 精品动漫一区二区三区在线观看| 日韩毛片在线免费观看| 卡一卡二国产精品| 欧美视频日韩视频| 国产女人aaa级久久久级| 亚洲激情图片一区| 国产美女精品在线| 日韩女优毛片在线| 亚洲国产精品久久久久婷婷884| 国产老肥熟一区二区三区| 欧美性一区二区| 国产精品日日摸夜夜摸av| 蜜臀99久久精品久久久久久软件| 波多野结衣在线一区| 精品免费国产二区三区| 亚洲香肠在线观看| 97se亚洲国产综合自在线不卡| 日韩一区二区三区四区五区六区| 亚洲三级视频在线观看| 丰满少妇在线播放bd日韩电影| 欧美一卡二卡三卡四卡| 亚洲成av人片在线| 欧美日韩在线播放三区四区| 国产欧美日韩激情| 久久av中文字幕片| 欧美一卡二卡在线观看| 亚洲第一福利视频在线| 在线观看国产一区二区| 中文字幕一区三区| 粉嫩av一区二区三区| 久久精品夜夜夜夜久久| 国产精品一区二区三区四区| 欧美日韩一区二区三区免费看 | 久久综合九色综合欧美就去吻| 亚洲成va人在线观看| 欧美性大战久久久| 亚洲国产视频网站| 欧美日韩午夜在线| 日韩高清一区二区| 日韩欧美黄色影院| 国产河南妇女毛片精品久久久| 久久久久久久久久久久久女国产乱| 精品一区二区三区在线播放视频 | 色av一区二区| 亚洲午夜激情网站| 91精品国产综合久久精品app | 中文字幕不卡在线播放| 成人av资源在线观看| 国产精品高清亚洲| 91国产成人在线| 一区二区在线观看免费| 欧美高清视频www夜色资源网| 天堂成人国产精品一区| 欧美videos大乳护士334| 国产精品1区2区3区在线观看| 国产精品免费av| 欧美另类久久久品| 国产精品一线二线三线| 亚洲色图欧洲色图婷婷| 91麻豆精品国产综合久久久久久 | 91精彩视频在线观看| 蜜桃视频在线观看一区| 中文字幕欧美三区| 欧美日韩精品一区二区天天拍小说| 日本va欧美va欧美va精品| 欧美激情在线一区二区三区| 91看片淫黄大片一级在线观看| 石原莉奈在线亚洲二区| 中文字幕乱码一区二区免费| 欧美色综合网站| 久久久久国色av免费看影院| 91久久奴性调教| 国产毛片精品国产一区二区三区| 亚洲视频香蕉人妖| 久久久天堂av| 欧美视频一区二区三区四区| 国产美女一区二区三区| 一本久久a久久免费精品不卡| 麻豆成人av在线| 亚洲午夜久久久久久久久电影院 | 欧美精品久久久久久久多人混战| 国产成人av自拍| 蜜桃精品视频在线观看| 亚洲免费在线播放| 国产日韩欧美a| 欧美一区二区观看视频| 欧美最猛性xxxxx直播| 成人ar影院免费观看视频| 久久福利资源站| 亚洲综合久久久| 国产精品色噜噜| 欧美精品一区二区三区蜜桃视频| 欧美在线你懂的| 99re热这里只有精品免费视频| 另类中文字幕网| 日韩国产欧美在线观看| 亚洲风情在线资源站| 亚洲人成精品久久久久久| 久久精品欧美一区二区三区不卡| 精品视频在线免费观看| 91官网在线免费观看| 91丝袜国产在线播放| 国模一区二区三区白浆| 91精品婷婷国产综合久久性色| 色偷偷一区二区三区| 成人av电影在线观看| 国产69精品久久99不卡| 国产成人免费网站| 国产精品毛片a∨一区二区三区| 欧美mv日韩mv国产| 精品剧情在线观看| 2021中文字幕一区亚洲| 欧美成人bangbros| 2019国产精品| 久久精品在这里| 亚洲国产精品激情在线观看| 国产精品白丝在线| 亚洲视频在线一区观看| 一区二区三区精密机械公司| 亚洲国产精品久久人人爱蜜臀| 亚洲一区二区三区四区在线| 亚洲一区二区三区国产| 日韩中文字幕麻豆| 成人美女视频在线观看| 波多野结衣在线aⅴ中文字幕不卡| 9i在线看片成人免费| 91成人在线精品| 88在线观看91蜜桃国自产| 久久毛片高清国产| 成人欧美一区二区三区黑人麻豆| 亚洲在线中文字幕| 久久精品国产久精国产| 懂色中文一区二区在线播放| 99久久久久久| 欧美日韩成人在线| 欧美va亚洲va在线观看蝴蝶网| 欧美韩日一区二区三区四区| 亚洲欧洲日韩女同| 亚洲综合免费观看高清在线观看| 一区二区三区日韩欧美精品| 亚洲成人中文在线| 国产高清不卡一区二区| 9久草视频在线视频精品| 日韩一区二区在线观看视频播放| 日本一区二区视频在线观看| 一区二区三区四区五区视频在线观看| 午夜精品久久一牛影视| 成人短视频下载| 欧美一区永久视频免费观看| 国产精品免费丝袜|