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

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

?? tcolor

?? linux 下的源代碼分析閱讀器 red hat公司新版
??
字號:
#!/bin/sh# the next line restarts using wish \exec wish "$0" "$@"# tcolor --# This script implements a simple color editor, where you can# create colors using either the RGB, HSB, or CYM color spaces# and apply the color to existing applications.## RCS: @(#) $Id: tcolor 144 2003-02-05 10:56:26Z mdejong $wm title . "Color Editor"# Global variables that control the program:## colorSpace -			Color space currently being used for#				editing.  Must be "rgb", "cmy", or "hsb".# label1, label2, label3 -	Labels for the scales.# red, green, blue -		Current color intensities in decimal#				on a scale of 0-65535.# color -			A string giving the current color value#				in the proper form for x:#				#RRRRGGGGBBBB# updating -			Non-zero means that we're in the middle of#				updating the scales to load a new color,so#				information shouldn't be propagating back#				from the scales to other elements of the#				program:  this would make an infinite loop.# command -			Holds the command that has been typed#				into the "Command" entry.# autoUpdate -			1 means execute the update command#				automatically whenever the color changes.# name -			Name for new color, typed into entry.set colorSpace hsbset red 65535set green 0set blue 0set color #ffff00000000set updating 0set autoUpdate 1set name ""# Create the menu bar at the top of the window.frame .menu -relief raised -borderwidth 2pack .menu -side top -fill xmenubutton .menu.file -text File -menu .menu.file.m -underline 0menu .menu.file.m.menu.file.m add radio -label "RGB color space" -variable colorSpace \	-value rgb -underline 0 -command {changeColorSpace rgb}.menu.file.m add radio -label "CMY color space" -variable colorSpace \	-value cmy -underline 0 -command {changeColorSpace cmy}.menu.file.m add radio -label "HSB color space" -variable colorSpace \	-value hsb -underline 0 -command {changeColorSpace hsb}.menu.file.m add separator.menu.file.m add radio -label "Automatic updates" -variable autoUpdate \	-value 1 -underline 0.menu.file.m add radio -label "Manual updates" -variable autoUpdate \	-value 0 -underline 0.menu.file.m add separator.menu.file.m add command -label "Exit program" -underline 0 \	-command "destroy ."pack .menu.file -side left# Create the command entry window at the bottom of the window, along# with the update button.frame .bot -relief raised -borderwidth 2pack .bot -side bottom -fill xlabel .commandLabel -text "Command:"entry .command -relief sunken -borderwidth 2 -textvariable command \	-font {Courier 12}button .update -text Update -command doUpdatepack .commandLabel -in .bot -side leftpack .update -in .bot -side right -pady .1c -padx .25cpack .command -in .bot -expand yes -fill x -ipadx 0.25c# Create the listbox that holds all of the color names in rgb.txt,# if an rgb.txt file can be found.frame .middle -relief raised -borderwidth 2pack .middle -side top -fill bothforeach i {/usr/local/lib/X11/rgb.txt /usr/lib/X11/rgb.txt	/X11/R5/lib/X11/rgb.txt /X11/R4/lib/rgb/rgb.txt	/usr/openwin/lib/X11/rgb.txt} {    if ![file readable $i] {	continue;    }    set f [open $i]    frame .middle.left    pack .middle.left -side left -padx .25c -pady .25c    listbox .names -width 20 -height 12 -yscrollcommand ".scroll set" \	    -relief sunken -borderwidth 2 -exportselection false    bind .names <Double-1> {	    tc_loadNamedColor [.names get [.names curselection]]    }    scrollbar .scroll -orient vertical -command ".names yview" \	    -relief sunken -borderwidth 2    pack .names -in .middle.left -side left    pack .scroll -in .middle.left -side right -fill y    while {[gets $f line] >= 0} {	if {[llength $line] == 4} {	    .names insert end [lindex $line 3]	}    }    close $f    break}# Create the three scales for editing the color, and the entry for# typing in a color value.frame .middle.middlepack .middle.middle -side left -expand yes -fill yframe .middle.middle.1frame .middle.middle.2frame .middle.middle.3frame .middle.middle.4pack .middle.middle.1 .middle.middle.2 .middle.middle.3 -side top -expand yespack .middle.middle.4 -side top -expand yes -fill xforeach i {1 2 3} {    label .label$i -textvariable label$i    scale .scale$i -from 0 -to 1000 -length 6c -orient horizontal \	    -command tc_scaleChanged    pack .scale$i .label$i -in .middle.middle.$i -side top -anchor w}label .nameLabel -text "Name:"entry .name -relief sunken -borderwidth 2 -textvariable name -width 10 \	-font {Courier 12}pack .nameLabel -in .middle.middle.4 -side leftpack .name -in .middle.middle.4 -side right -expand 1 -fill xbind .name <Return> {tc_loadNamedColor $name}# Create the color display swatch on the right side of the window.frame .middle.rightpack .middle.right -side left -pady .25c -padx .25c -anchor sframe .swatch -width 2c -height 5c -background $colorlabel .value -textvariable color -width 13 -font {Courier 12}pack .swatch -in .middle.right -side top -expand yes -fill bothpack .value -in .middle.right -side bottom -pady .25c# The procedure below is invoked when one of the scales is adjusted.# It propagates color information from the current scale readings# to everywhere else that it is used.proc tc_scaleChanged args {    global red green blue colorSpace color updating autoUpdate    if $updating {	return    }    if {$colorSpace == "rgb"} {	set red   [format %.0f [expr [.scale1 get]*65.535]]	set green [format %.0f [expr [.scale2 get]*65.535]]	set blue  [format %.0f [expr [.scale3 get]*65.535]]    } else {	if {$colorSpace == "cmy"} {	    set red   [format %.0f [expr {65535 - [.scale1 get]*65.535}]]	    set green [format %.0f [expr {65535 - [.scale2 get]*65.535}]]	    set blue  [format %.0f [expr {65535 - [.scale3 get]*65.535}]]	} else {	    set list [hsbToRgb [expr {[.scale1 get]/1000.0}] \		    [expr {[.scale2 get]/1000.0}] \		    [expr {[.scale3 get]/1000.0}]]	    set red [lindex $list 0]	    set green [lindex $list 1]	    set blue [lindex $list 2]	}    }    set color [format "#%04x%04x%04x" $red $green $blue]    .swatch config -bg $color    if $autoUpdate doUpdate    update idletasks}# The procedure below is invoked to update the scales from the# current red, green, and blue intensities.  It's invoked after# a change in the color space and after a named color value has# been loaded.proc tc_setScales {} {    global red green blue colorSpace updating    set updating 1    if {$colorSpace == "rgb"} {	.scale1 set [format %.0f [expr $red/65.535]]	.scale2 set [format %.0f [expr $green/65.535]]	.scale3 set [format %.0f [expr $blue/65.535]]    } else {	if {$colorSpace == "cmy"} {	    .scale1 set [format %.0f [expr (65535-$red)/65.535]]	    .scale2 set [format %.0f [expr (65535-$green)/65.535]]	    .scale3 set [format %.0f [expr (65535-$blue)/65.535]]	} else {	    set list [rgbToHsv $red $green $blue]	    .scale1 set [format %.0f [expr {[lindex $list 0] * 1000.0}]]	    .scale2 set [format %.0f [expr {[lindex $list 1] * 1000.0}]]	    .scale3 set [format %.0f [expr {[lindex $list 2] * 1000.0}]]	}    }    set updating 0}# The procedure below is invoked when a named color has been# selected from the listbox or typed into the entry.  It loads# the color into the editor.proc tc_loadNamedColor name {    global red green blue color autoUpdate    if {[string index $name 0] != "#"} {	set list [winfo rgb .swatch $name]	set red [lindex $list 0]	set green [lindex $list 1]	set blue [lindex $list 2]    } else {	case [string length $name] {	    4 {set format "#%1x%1x%1x"; set shift 12}	    7 {set format "#%2x%2x%2x"; set shift 8}	    10 {set format "#%3x%3x%3x"; set shift 4}	    13 {set format "#%4x%4x%4x"; set shift 0}	    default {error "syntax error in color name \"$name\""}	}	if {[scan $name $format red green blue] != 3} {	    error "syntax error in color name \"$name\""	}	set red [expr $red<<$shift]	set green [expr $green<<$shift]	set blue [expr $blue<<$shift]    }    tc_setScales    set color [format "#%04x%04x%04x" $red $green $blue]    .swatch config -bg $color    if $autoUpdate doUpdate}# The procedure below is invoked when a new color space is selected.# It changes the labels on the scales and re-loads the scales with# the appropriate values for the current color in the new color spaceproc changeColorSpace space {    global label1 label2 label3    if {$space == "rgb"} {	set label1 Red	set label2 Green	set label3 Blue	tc_setScales	return    }    if {$space == "cmy"} {	set label1 Cyan	set label2 Magenta	set label3 Yellow	tc_setScales	return    }    if {$space == "hsb"} {	set label1 Hue	set label2 Saturation	set label3 Brightness	tc_setScales	return    }}# The procedure below converts an RGB value to HSB.  It takes red, green,# and blue components (0-65535) as arguments, and returns a list containing# HSB components (floating-point, 0-1) as result.  The code here is a copy# of the code on page 615 of "Fundamentals of Interactive Computer Graphics"# by Foley and Van Dam.proc rgbToHsv {red green blue} {    if {$red > $green} {	set max $red.0	set min $green.0    } else {	set max $green.0	set min $red.0    }    if {$blue > $max} {	set max $blue.0    } else {	if {$blue < $min} {	    set min $blue.0	}    }    set range [expr $max-$min]    if {$max == 0} {	set sat 0    } else {	set sat [expr {($max-$min)/$max}]    }    if {$sat == 0} {	set hue 0    } else {	set rc [expr {($max - $red)/$range}]	set gc [expr {($max - $green)/$range}]	set bc [expr {($max - $blue)/$range}]	if {$red == $max} {	    set hue [expr {.166667*($bc - $gc)}]	} else {	    if {$green == $max} {		set hue [expr {.166667*(2 + $rc - $bc)}]	    } else {		set hue [expr {.166667*(4 + $gc - $rc)}]	    }	}	if {$hue < 0.0} {	    set hue [expr $hue + 1.0]	}    }    return [list $hue $sat [expr {$max/65535}]]}# The procedure below converts an HSB value to RGB.  It takes hue, saturation,# and value components (floating-point, 0-1.0) as arguments, and returns a# list containing RGB components (integers, 0-65535) as result.  The code# here is a copy of the code on page 616 of "Fundamentals of Interactive# Computer Graphics" by Foley and Van Dam.proc hsbToRgb {hue sat value} {    set v [format %.0f [expr 65535.0*$value]]    if {$sat == 0} {	return "$v $v $v"    } else {	set hue [expr $hue*6.0]	if {$hue >= 6.0} {	    set hue 0.0	}	scan $hue. %d i	set f [expr $hue-$i]	set p [format %.0f [expr {65535.0*$value*(1 - $sat)}]]	set q [format %.0f [expr {65535.0*$value*(1 - ($sat*$f))}]]	set t [format %.0f [expr {65535.0*$value*(1 - ($sat*(1 - $f)))}]]	case $i \	    0 {return "$v $t $p"} \	    1 {return "$q $v $p"} \	    2 {return "$p $v $t"} \	    3 {return "$p $q $v"} \	    4 {return "$t $p $v"} \	    5 {return "$v $p $q"}	error "i value $i is out of range"    }}# The procedure below is invoked when the "Update" button is pressed,# and whenever the color changes if update mode is enabled.  It# propagates color information as determined by the command in the# Command entry.proc doUpdate {} {    global color command    set newCmd $command    regsub -all %% $command $color newCmd    eval $newCmd}changeColorSpace hsb

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久久久久久久久夜| 国产情人综合久久777777| 91精品欧美福利在线观看| 制服视频三区第一页精品| 久久久无码精品亚洲日韩按摩| 一区二区三区四区激情 | 国产精品一区二区在线播放| 国产精品 日产精品 欧美精品| 一本大道久久a久久综合| 久久久五月婷婷| 日韩精品午夜视频| 91同城在线观看| 久久夜色精品国产噜噜av | 欧美成人一区二区三区在线观看 | 精品久久免费看| 亚洲图片欧美激情| 免费观看日韩av| 99久免费精品视频在线观看 | 欧美精品一区二区不卡 | 日本一区二区免费在线| 日韩黄色片在线观看| 色先锋久久av资源部| 国产精品丝袜91| 久久aⅴ国产欧美74aaa| 欧美吞精做爰啪啪高潮| 免费观看成人av| 欧美性xxxxxx少妇| 亚洲欧美日韩国产成人精品影院| 琪琪久久久久日韩精品| 欧美日韩高清一区二区| 亚洲五月六月丁香激情| 色婷婷精品大在线视频| 亚洲视频 欧洲视频| 本田岬高潮一区二区三区| 国产三级一区二区| 国产精品一区二区在线看| 国产无人区一区二区三区| 国产精品综合av一区二区国产馆| 精品国产成人在线影院| 另类中文字幕网| 欧美成人a在线| 国产一区二区免费看| 久久久777精品电影网影网 | 国产成人综合在线| 久久久精品tv| 99re热这里只有精品视频| 综合久久久久久| 欧美亚洲日本国产| 日韩精品1区2区3区| 91麻豆精品国产91久久久使用方法 | 美女一区二区视频| 欧美大尺度电影在线| 国内精品伊人久久久久av一坑| 精品国产一区二区三区忘忧草| 久久se精品一区二区| 国产无人区一区二区三区| 91丝袜国产在线播放| 亚洲欧洲中文日韩久久av乱码| 欧美午夜精品久久久久久孕妇 | 成人性视频免费网站| 亚洲欧洲韩国日本视频| 在线影视一区二区三区| 麻豆精品视频在线观看| 国产精品色一区二区三区| 91久久香蕉国产日韩欧美9色| 亚洲h动漫在线| 久久网这里都是精品| 91在线云播放| 青青草国产成人99久久| 亚洲国产精品精华液ab| 欧美午夜精品久久久久久超碰| 久热成人在线视频| 国产精品成人网| 欧美一卡2卡3卡4卡| 成人三级在线视频| 天天综合天天综合色| 欧美激情一区二区三区全黄| 欧洲精品视频在线观看| 激情文学综合插| 亚洲激情av在线| 26uuu色噜噜精品一区二区| 色哟哟一区二区在线观看| 国产自产v一区二区三区c| 亚洲欧美激情一区二区| 一区二区三区四区在线播放 | 久久久欧美精品sm网站| 国产精品欧美一区喷水| 国产欧美精品区一区二区三区| 在线观看av一区二区| 91麻豆国产福利精品| 91伊人久久大香线蕉| 成a人片国产精品| 在线视频你懂得一区| 欧美精品色综合| 精品国产乱码久久久久久夜甘婷婷| 国产午夜精品理论片a级大结局 | 免费成人在线影院| 日精品一区二区三区| 午夜视频一区二区三区| 国产精品影视网| 7777精品伊人久久久大香线蕉完整版 | 日韩区在线观看| 亚洲另类一区二区| av一区二区三区四区| 精品少妇一区二区三区在线播放 | 欧美三级中文字幕| 中文字幕一区二区三区四区| 国产老女人精品毛片久久| 欧美一区二区免费视频| 日韩一区精品字幕| 欧美日韩一卡二卡三卡 | 欧美老女人第四色| 亚洲亚洲精品在线观看| 欧美日韩中字一区| 日韩在线一区二区三区| 欧美一级日韩免费不卡| 麻豆精品视频在线观看免费| 精品蜜桃在线看| 处破女av一区二区| 一区二区在线电影| 欧美一区二区女人| 国产成人综合亚洲91猫咪| 国产精品丝袜一区| 欧美一区二区在线播放| 久久99国产精品免费网站| 久久久午夜精品| 欧美色图激情小说| 国产精品一区二区91| 亚洲视频一区二区在线观看| 欧美色老头old∨ideo| 国产高清不卡二三区| 亚洲电影第三页| 成人欧美一区二区三区| 91精品国产综合久久婷婷香蕉| 韩国一区二区三区| 日韩综合小视频| 夜夜爽夜夜爽精品视频| 久久先锋影音av| 日韩视频国产视频| 欧美精品v国产精品v日韩精品| 成人美女视频在线看| 国产精品一区二区黑丝| 日韩极品在线观看| 亚洲成av人在线观看| 亚洲人成精品久久久久久| 中文在线资源观看网站视频免费不卡| 欧美一区二区在线不卡| 91女神在线视频| 色琪琪一区二区三区亚洲区| 懂色av噜噜一区二区三区av| 黑人巨大精品欧美一区| 青青青伊人色综合久久| 久久99精品国产.久久久久久| 看电视剧不卡顿的网站| 爽爽淫人综合网网站| 日韩国产高清影视| 国产一区二区三区四区五区入口 | 亚洲精品国产无套在线观| 最新不卡av在线| 日日噜噜夜夜狠狠视频欧美人 | 青青草原综合久久大伊人精品| 日韩综合一区二区| 福利视频网站一区二区三区| 成人免费看黄yyy456| 欧美日韩久久久| 精品国产一区二区三区av性色| 国产清纯在线一区二区www| 欧美极品美女视频| 午夜精品久久久久久久久久 | 极品美女销魂一区二区三区免费| 久久99国产精品尤物| 日本高清不卡视频| 久久久影院官网| 亚洲成av人片在线| 福利91精品一区二区三区| 欧美日韩在线播放三区| 国产精品久久久久久户外露出| 婷婷六月综合亚洲| 99国产精品久久久久| 欧美成人欧美edvon| 亚洲国产成人高清精品| 91一区在线观看| 亚洲国产成人自拍| 国产伦精品一区二区三区视频青涩 | 精品人在线二区三区| 五月激情六月综合| 欧美日韩精品欧美日韩精品一 | 亚洲成av人片在线观看无码| 成人性视频免费网站| 久久精品亚洲精品国产欧美kt∨ | 久久午夜羞羞影院免费观看| 日本中文在线一区| 欧美电影在哪看比较好| 麻豆成人91精品二区三区| 久久亚洲春色中文字幕久久久| 国产不卡在线一区| 亚洲欧美电影一区二区| 欧美一级电影网站| 不卡一区二区三区四区| 丝袜美腿亚洲一区|