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

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

?? tcolor

?? genesis 2000 v9.1軟件下載
??
字號:
#!/bin/sh# the next line restarts using wish \exec wish8.0 "$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,v 1.2 1998/09/14 18:23:30 stanton Exp $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一区二区三区免费野_久草精品视频
欧美日韩国产一二三| 久久久综合九色合综国产精品| 666欧美在线视频| 国产欧美日韩综合精品一区二区| 亚洲黄色免费网站| 国产成人自拍网| 91精品啪在线观看国产60岁| 国产精品国产三级国产| 精品一区二区在线视频| 欧美日韩一区二区三区高清| 国产三级精品三级在线专区| 日本中文字幕一区| 欧洲中文字幕精品| 中文字幕色av一区二区三区| 国产美女精品人人做人人爽| 日韩欧美在线123| 午夜欧美2019年伦理| 色播五月激情综合网| 中文字幕欧美一区| 成人黄色a**站在线观看| 久久嫩草精品久久久精品| 色哟哟国产精品| 免费一级片91| 欧洲中文字幕精品| 日韩一区日韩二区| youjizz久久| 国产精品麻豆网站| bt7086福利一区国产| 久久久不卡影院| 国产成人精品综合在线观看 | 亚洲午夜久久久| 欧美系列亚洲系列| 一区二区日韩av| 欧洲av一区二区嗯嗯嗯啊| 一区二区三区在线观看国产| 91精彩视频在线观看| 一区二区在线电影| 欧美日韩精品免费观看视频| 亚洲国产精品一区二区久久| 欧美日韩一区在线| 天堂在线亚洲视频| 日韩欧美国产高清| 久久疯狂做爰流白浆xx| 欧美va亚洲va| 粉嫩久久99精品久久久久久夜| 久久精品人人做人人综合 | 久久久久久亚洲综合影院红桃 | 亚洲国产综合视频在线观看| 欧美日韩久久久久久| 奇米一区二区三区| 久久人人爽爽爽人久久久| 国产一二三精品| 亚洲欧洲99久久| 色八戒一区二区三区| 午夜精品久久久久久久久久| 日韩欧美中文一区二区| 成人免费高清视频| 一区二区视频在线| 日韩一区二区三区三四区视频在线观看 | 欧美一级视频精品观看| 国产最新精品精品你懂的| 国产精品久久久久一区二区三区 | 成人一区在线观看| 亚洲黄色尤物视频| 日韩精品一区二区在线观看| 国产91精品在线观看| 亚洲综合成人网| 欧美精品一区二区在线播放| 99精品一区二区三区| 免费不卡在线观看| 中文字幕在线播放不卡一区| 欧美日韩日本视频| 成人三级伦理片| 午夜天堂影视香蕉久久| 久久精品亚洲一区二区三区浴池| 91免费看`日韩一区二区| 日本人妖一区二区| 亚洲人吸女人奶水| 精品国内二区三区| 欧美三级一区二区| 成人av高清在线| 蜜桃av一区二区在线观看| 亚洲视频小说图片| 久久久电影一区二区三区| 欧美日韩国产片| 91视频在线观看| 国产福利不卡视频| 日韩va亚洲va欧美va久久| 亚洲色图都市小说| 中文字幕精品三区| 日韩欧美中文一区二区| 欧美日韩一级二级三级| 99久久精品国产毛片| 国产综合色产在线精品| 日韩精品亚洲一区| 亚洲午夜视频在线观看| 中文字幕一区二区三区av| 久久婷婷综合激情| 91精品午夜视频| 在线播放中文字幕一区| 91福利精品视频| 91视频在线看| 97se亚洲国产综合自在线| 国产露脸91国语对白| 久久99国产精品久久| 日韩精品高清不卡| 午夜在线成人av| 五月综合激情日本mⅴ| 一区二区三区在线免费播放| 综合欧美亚洲日本| 国产精品久久久久久户外露出| 久久久五月婷婷| 久久亚洲精精品中文字幕早川悠里| 91精品国产全国免费观看| 91精品麻豆日日躁夜夜躁| 欧美日韩亚洲综合一区| 欧美视频精品在线| 在线播放中文字幕一区| 91麻豆精品国产91久久久更新时间| 欧美图片一区二区三区| 欧美日韩精品欧美日韩精品一| 欧美日韩亚州综合| 欧美一区二区国产| 欧美成人一区二区三区片免费 | 毛片基地黄久久久久久天堂| 免费xxxx性欧美18vr| 国产一区二区视频在线播放| 国产裸体歌舞团一区二区| 成人黄色a**站在线观看| 日本精品视频一区二区| 欧美日韩一区在线| 欧美va天堂va视频va在线| 久久久久久免费毛片精品| 国产精品色婷婷| 亚洲在线视频一区| 麻豆视频一区二区| 成人在线视频一区| 欧美视频在线观看一区| 这里是久久伊人| 国产调教视频一区| 亚洲一区免费视频| 久久精品国产一区二区| 国产成人精品综合在线观看| 日本伦理一区二区| 欧美成人aa大片| 亚洲天堂福利av| 免费人成精品欧美精品| 国产大陆亚洲精品国产| 在线亚洲人成电影网站色www| 欧美日韩亚洲国产综合| 久久精品人人做人人爽97| 亚洲男人电影天堂| 国模一区二区三区白浆| 91成人免费在线| 久久免费视频一区| 一区二区三区中文在线| 狠狠色丁香久久婷婷综合_中 | 久久99国内精品| 91丨九色porny丨蝌蚪| 日韩视频一区二区| 亚洲激情图片小说视频| 国内外成人在线视频| 欧美唯美清纯偷拍| 久久精品无码一区二区三区| 亚洲18女电影在线观看| www.亚洲在线| 精品国产99国产精品| 亚洲高清免费一级二级三级| 成人免费看的视频| 欧美草草影院在线视频| 亚洲自拍欧美精品| fc2成人免费人成在线观看播放| 91精品国产免费| 亚洲一二三四在线观看| 高清beeg欧美| 日韩美女一区二区三区四区| 亚洲曰韩产成在线| av成人免费在线观看| 久久久国产午夜精品| 久久国产精品72免费观看| 欧美剧情电影在线观看完整版免费励志电影| 国产欧美日韩视频在线观看| 理论片日本一区| 在线成人午夜影院| 亚洲一区二区三区四区在线| 成人黄色在线网站| 国产日韩欧美亚洲| 日本道精品一区二区三区| 国产日韩三级在线| 国产真实乱对白精彩久久| 制服丝袜亚洲播放| 天天色综合天天| 欧美日韩一卡二卡| 香蕉乱码成人久久天堂爱免费| 99精品黄色片免费大全| 国产精品久久久久精k8| 风间由美性色一区二区三区| 久久久www免费人成精品| 国产美女娇喘av呻吟久久| 26uuu精品一区二区|