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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? jpgraph_gradient.php

?? asterisk用 的voip記費(fèi)軟件
?? PHP
字號(hào):
<?php/*=======================================================================// File:	JPGRAPH_GRADIENT.PHP// Description:	Create a color gradient// Created: 	2003-02-01// Author:	Johan Persson (johanp@aditus.nu)// Ver:		$Id: jpgraph_gradient.php,v 1.1.2.11 2004/06/12 14:29:18 aditus Exp $//// License:	This code is released under QPL// Copyright (C) 2003 Johan Persson//========================================================================*/// Styles for gradient color fillDEFINE("GRAD_VER",1);DEFINE("GRAD_VERT",1);DEFINE("GRAD_HOR",2);DEFINE("GRAD_MIDHOR",3);DEFINE("GRAD_MIDVER",4);DEFINE("GRAD_CENTER",5);DEFINE("GRAD_WIDE_MIDVER",6);DEFINE("GRAD_WIDE_MIDHOR",7);DEFINE("GRAD_LEFT_REFLECTION",8);DEFINE("GRAD_RIGHT_REFLECTION",9);DEFINE("GRAD_RAISED_PANEL",10);  //===================================================// CLASS Gradient// Description: Handles gradient fills. This is to be// considered a "friend" class of Class Image.//===================================================class Gradient {    var $img=null;    var $numcolors=100;//---------------// CONSTRUCTOR    function Gradient(&$img) {	$this->img = $img;    }    function SetNumColors($aNum) {	$this->numcolors=$aNum;    }//---------------// PUBLIC METHODS	    // Produce a gradient filled rectangle with a smooth transition between    // two colors.    // ($xl,$yt) 	Top left corner    // ($xr,$yb)	Bottom right    // $from_color	Starting color in gradient    // $to_color	End color in the gradient    // $style		Which way is the gradient oriented?    function FilledRectangle($xl,$yt,$xr,$yb,$from_color,$to_color,$style=1) {	switch( $style ) {		    case GRAD_VER:  		$steps = round(abs($xr-$xl));		$delta = $xr>=$xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for( $i=0, $x=$xl; $i < $steps; ++$i ) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yt,$x,$yb);		    $x += $delta;		}		break;	    case GRAD_HOR: 		$steps = round(abs($yb-$yt));		$delta = $yb>=$yt ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for($i=0,$y=$yt; $i < $steps; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		break;	    case GRAD_MIDHOR: 		$steps = round(abs($yb-$yt)/2);		$delta = $yb >= $yt ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for($y=$yt, $i=0; $i < $steps;  ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		--$i;		if( abs($yb-$yt) % 2 == 1 ) --$steps;		for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		$this->img->Line($xl,$y,$xr,$y);		break;	    case GRAD_MIDVER: 		$steps = round(abs($xr-$xl)/2);		$delta = $xr>=$xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		for($x=$xl, $i=0; $i < $steps; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		--$i;		if( abs($xr-$xl) % 2 == 1 ) --$steps;		for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$this->img->Line($x,$yb,$x,$yt);				break;	    case GRAD_WIDE_MIDVER: 		$diff = round(abs($xr-$xl));		$steps = floor(abs($diff)/3);		$firststep = $diff - 2*$steps ; 		$delta = $xr >= $xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$firststep,$colors,$this->numcolors);		for($x=$xl, $i=0; $i < $firststep; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		--$i;		$this->img->current_color = $colors[$i];		for($j=0; $j< $steps; ++$j) {		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}				for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];						    $this->img->Line($x,$yb,$x,$yt);			    $x += $delta;		}						break;	    case GRAD_WIDE_MIDHOR:		$diff = round(abs($yb-$yt));		$steps = floor(abs($diff)/3);		$firststep = $diff - 2*$steps ; 		$delta = $yb >= $yt? 1 : -1;		$this->GetColArray($from_color,$to_color,$firststep,$colors,$this->numcolors);		for($y=$yt, $i=0; $i < $firststep;  ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		--$i;		$this->img->current_color = $colors[$i];		for($j=0; $j < $steps; ++$j) {		    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}		for($j=0; $j < $steps; ++$j, --$i) {		    $this->img->current_color = $colors[$i];						    $this->img->Line($xl,$y,$xr,$y);		    $y += $delta;		}						break;	    	    case GRAD_LEFT_REFLECTION: 		$steps1 = round(0.3*abs($xr-$xl));		$delta = $xr>=$xl ? 1 : -1;				$from_color = $this->img->rgb->Color($from_color);		$adj = 1.4;		$m = ($adj-1.0)*(255-min(255,min($from_color[0],min($from_color[1],$from_color[2]))));		$from_color2 = array(min(255,$from_color[0]+$m), 				    min(255,$from_color[1]+$m), min(255,$from_color[2]+$m));				$this->GetColArray($from_color2,$to_color,$steps1,$colors,$this->numcolors);		$n = count($colors);		for($x=$xl, $i=0; $i < $steps1 && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$steps2 = max(1,round(0.08*abs($xr-$xl)));		$this->img->SetColor($to_color);		for($j=0; $j< $steps2; ++$j) {		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$steps = abs($xr-$xl)-$steps1-$steps2;		$this->GetColArray($to_color,$from_color,$steps,$colors,$this->numcolors);   		$n = count($colors);		for($i=0; $i < $steps && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		break;	    case GRAD_RIGHT_REFLECTION: 		$steps1 = round(0.7*abs($xr-$xl));		$delta = $xr>=$xl ? 1 : -1;		$this->GetColArray($from_color,$to_color,$steps1,$colors,$this->numcolors);		$n = count($colors);		for($x=$xl, $i=0; $i < $steps1 && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$steps2 = max(1,round(0.08*abs($xr-$xl)));		$this->img->SetColor($to_color);		for($j=0; $j< $steps2; ++$j) {		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		$from_color = $this->img->rgb->Color($from_color);		$adj = 1.4;		$m = ($adj-1.0)*(255-min(255,min($from_color[0],min($from_color[1],$from_color[2]))));		$from_color = array(min(255,$from_color[0]+$m), 				    min(255,$from_color[1]+$m), min(255,$from_color[2]+$m));				$steps = abs($xr-$xl)-$steps1-$steps2;		$this->GetColArray($to_color,$from_color,$steps,$colors,$this->numcolors);   		$n = count($colors);		for($i=0; $i < $steps && $i < $n; ++$i) {		    $this->img->current_color = $colors[$i];		    $this->img->Line($x,$yb,$x,$yt);		    $x += $delta;		}		break;	    case GRAD_CENTER: 		$steps = ceil(min(($yb-$yt)+1,($xr-$xl)+1)/2);			$this->GetColArray($from_color,$to_color,$steps,$colors,$this->numcolors);		$dx = ($xr-$xl)/2;		$dy = ($yb-$yt)/2;		$x=$xl;$y=$yt;$x2=$xr;$y2=$yb;		$n = count($colors);		for($x=$xl, $i=0; $x < $xl+$dx && $y < $yt+$dy && $i < $n; ++$x, ++$y, --$x2, --$y2, ++$i) {		    $this->img->current_color = $colors[$i];					    $this->img->Rectangle($x,$y,$x2,$y2);		}		$this->img->Line($x,$y,$x2,$y2);		break;			    case GRAD_RAISED_PANEL:		// right to left 		$steps1 = $xr-$xl; 		$delta = $xr>=$xl ? 1 : -1; 		$this->GetColArray($to_color,$from_color,$steps1,$colors,$this->numcolors); 		$n = count($colors);		for($x=$xl, $i=0; $i < $steps1 && $i < $n; ++$i) { 		    $this->img->current_color = $colors[$i]; 		    $this->img->Line($x,$yb,$x,$yt); 		    $x += $delta; 		} 				// left to right 		$xr -= 3; 		$xl += 3; 		$yb -= 3; 		$yt += 3; 		$steps2 = $xr-$xl; 		$delta = $xr>=$xl ? 1 : -1; 		for($x=$xl, $j=$steps2; $j >= 0; --$j) { 		    $this->img->current_color = $colors[$j]; 		    $this->img->Line($x,$yb,$x,$yt); 		    $x += $delta; 		} 		break;	    default:		JpGraphError::Raise("Unknown gradient style (=$style).");		break;	}    }    // Fill a special case of a polygon with a flat bottom    // with a gradient. Can be used for filled line plots.    // Please note that this is NOT a generic gradient polygon fill    // routine. It assumes that the bottom is flat (like a drawing    // of a mountain)    function FilledFlatPolygon($pts,$from_color,$to_color) {	if( count($pts) == 0 ) return;		$maxy=$pts[1];	$miny=$pts[1];			$n = count($pts) ;	for( $i=0, $idx=0; $i < $n; $i += 2) {	    $x = round($pts[$i]);	    $y = round($pts[$i+1]);	    $miny = min($miny,$y);	    $maxy = max($maxy,$y);	}	    	$colors = array();	$this->GetColArray($from_color,$to_color,abs($maxy-$miny)+1,$colors,$this->numcolors);	for($i=$miny, $idx=0; $i <= $maxy; ++$i ) {	    $colmap[$i] = $colors[$idx++]; 	}	$n = count($pts)/2 ;	$idx = 0 ;	while( $idx < $n-1 ) {	    $p1 = array(round($pts[$idx*2]),round($pts[$idx*2+1]));	    $p2 = array(round($pts[++$idx*2]),round($pts[$idx*2+1]));			    // Find the largest rectangle we can fill	    $y = max($p1[1],$p2[1]) ;	    for($yy=$maxy; $yy > $y; --$yy) {		$this->img->current_color = $colmap[$yy];		$this->img->Line($p1[0],$yy,$p2[0]-1,$yy);	    }	    	    if( $p1[1] == $p2[1] ) continue; 	    // Fill the rest using lines (slow...)	    $slope = ($p2[0]-$p1[0])/($p1[1]-$p2[1]);	    $x1 = $p1[0];	    $x2 = $p2[0]; //-1;	    $start = $y;	    if( $p1[1] > $p2[1] ) {		while( $y >= $p2[1] ) {		    $x1=$slope*($start-$y)+$p1[0];		    $this->img->current_color = $colmap[$y];		    $this->img->Line($x1,$y,$x2,$y);		    --$y;		} 	    }	    else {		while( $y >= $p1[1] ) {		    $x2=$p2[0]+$slope*($start-$y);		    $this->img->current_color = $colmap[$y];		    $this->img->Line($x1,$y,$x2,$y);		    --$y;		} 	    }	}    }//---------------// PRIVATE METHODS	    // Add to the image color map the necessary colors to do the transition    // between the two colors using $numcolors intermediate colors    function GetColArray($from_color,$to_color,$arr_size,&$colors,$numcols=100) {	if( $arr_size==0 ) return;	// If color is given as text get it's corresponding r,g,b values	$from_color = $this->img->rgb->Color($from_color);	$to_color = $this->img->rgb->Color($to_color);			$rdelta=($to_color[0]-$from_color[0])/$numcols;	$gdelta=($to_color[1]-$from_color[1])/$numcols;	$bdelta=($to_color[2]-$from_color[2])/$numcols;	$colorsperstep	= $numcols/$arr_size;	$prevcolnum	= -1;	$from_alpha = $from_color[3];	$to_alpha = $to_color[3];	$adelta = ( $to_alpha - $from_alpha ) / $numcols ;	for ($i=0; $i < $arr_size; ++$i) {	    $colnum = floor($colorsperstep*$i);	    if ( $colnum == $prevcolnum ) 		$colors[$i]	= $colidx;	    else {		$r = floor($from_color[0] + $colnum*$rdelta);		$g = floor($from_color[1] + $colnum*$gdelta);		$b = floor($from_color[2] + $colnum*$bdelta);		$alpha = $from_alpha + $colnum*$adelta;		$colidx = $this->img->rgb->Allocate(sprintf("#%02x%02x%02x",$r,$g,$b),$alpha);		$colors[$i] = $colidx;	    }	    $prevcolnum = $colnum;	}    }	} // Class?>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
5858s免费视频成人| 久久奇米777| 99久久精品久久久久久清纯| 免费成人av在线播放| 一区二区三区美女| 国产精品国产自产拍高清av王其| 91精品国产乱| 欧美日韩在线播| 91蝌蚪porny九色| 成人白浆超碰人人人人| 国产乱对白刺激视频不卡| 久久99精品国产麻豆婷婷| 日韩成人伦理电影在线观看| 亚洲一级二级在线| www亚洲一区| 欧美成人高清电影在线| 日韩欧美国产综合在线一区二区三区| 欧美伊人久久大香线蕉综合69| 色天天综合色天天久久| 91视频www| 福利视频网站一区二区三区| 国产一区二区91| 国产高清一区日本| 裸体歌舞表演一区二区| 精品一区二区三区在线播放视频| 麻豆成人久久精品二区三区小说| 免费观看日韩av| 麻豆91在线播放| 蓝色福利精品导航| 国精产品一区一区三区mba桃花| 久久97超碰国产精品超碰| 久久91精品久久久久久秒播| 捆绑调教美女网站视频一区| 国产一二三精品| 国产一二精品视频| 不卡电影一区二区三区| 99久久伊人网影院| 欧洲在线/亚洲| 7777精品伊人久久久大香线蕉经典版下载 | 成人午夜在线播放| 不卡视频免费播放| 在线欧美日韩精品| 欧美日韩一区二区三区在线| 欧美三级韩国三级日本一级| 欧美一二三在线| 久久久不卡网国产精品二区| 国产欧美在线观看一区| 成人免费在线视频观看| 国产精品福利一区二区| 亚洲国产aⅴ成人精品无吗| 免费欧美在线视频| 精品中文av资源站在线观看| 国产91综合网| 在线中文字幕一区二区| 日韩午夜中文字幕| 国产精品美女久久久久久久久| 悠悠色在线精品| 热久久久久久久| 国产福利一区二区三区视频 | 国产精品亚洲专一区二区三区| 成人免费视频免费观看| 在线观看一区二区精品视频| 日韩一卡二卡三卡| 日本一区二区三区dvd视频在线| 亚洲最大成人综合| 亚洲成人福利片| 国产乱色国产精品免费视频| 91久久精品一区二区| 欧美一级久久久| 国产精品久久三区| 日韩精品欧美精品| 不卡的电影网站| 欧美视频在线播放| 久久精品人人做人人爽97| 亚洲综合图片区| 国产美女视频一区| 精品1区2区3区| 国产精品国产精品国产专区不片| 国产一区二区三区观看| 欧美一区二区啪啪| 亚洲成人免费视| 色呦呦一区二区三区| 国产精品美女视频| 国产成人自拍网| 2024国产精品视频| 日本女人一区二区三区| 欧美日韩黄视频| 亚洲精品欧美激情| 91农村精品一区二区在线| 国产农村妇女毛片精品久久麻豆| 国产中文字幕精品| 久久综合色一综合色88| 日本三级亚洲精品| 717成人午夜免费福利电影| 亚洲午夜免费电影| 色婷婷av一区| 亚洲在线视频免费观看| 欧美影院午夜播放| 亚洲午夜视频在线观看| 欧美日韩中文一区| 天堂在线一区二区| 91精品蜜臀在线一区尤物| 亚洲成人手机在线| 欧美久久久久免费| 日韩激情一二三区| 日韩欧美一级二级三级| 久久精品国产99| 精品国产一区二区三区四区四| 精品一区二区在线观看| 久久精品亚洲一区二区三区浴池| 懂色av噜噜一区二区三区av| 久久精品欧美日韩| av电影在线观看一区| 亚洲黄色免费电影| 欧美高清你懂得| 美女视频第一区二区三区免费观看网站| 在线播放中文字幕一区| 91免费视频观看| 亚洲色图清纯唯美| 欧美日韩免费视频| 日韩精品电影在线| 久久精品一区四区| 97精品久久久午夜一区二区三区| 亚洲主播在线观看| 欧美一区二区精品久久911| 紧缚捆绑精品一区二区| 国产精品麻豆久久久| 在线观看成人小视频| 免费视频最近日韩| 日本一区二区三区四区| 欧美亚洲禁片免费| 精品一区免费av| 自拍偷拍欧美激情| 91精品国产欧美一区二区| 国产综合色产在线精品| 亚洲日本va在线观看| 56国语精品自产拍在线观看| 国产酒店精品激情| 玉足女爽爽91| 久久在线观看免费| 99视频国产精品| 麻豆91精品视频| 日韩一区日韩二区| 日韩欧美你懂的| 91欧美一区二区| 精品一区二区三区的国产在线播放 | 色婷婷av一区二区三区gif| 日本 国产 欧美色综合| 中文字幕av资源一区| 欧美性猛交xxxxxxxx| 国产一区二区免费在线| 亚洲午夜成aⅴ人片| 国产日韩欧美精品一区| 欧美精品乱人伦久久久久久| 国产白丝网站精品污在线入口| 一区二区高清免费观看影视大全 | 有坂深雪av一区二区精品| 欧美成人vr18sexvr| 色婷婷久久一区二区三区麻豆| 久久se精品一区二区| 亚洲免费观看在线视频| 久久女同精品一区二区| 欧美日韩一级二级三级| 成人手机在线视频| 婷婷国产在线综合| 亚洲丝袜自拍清纯另类| 亚洲精品在线电影| 欧美四级电影在线观看| 成人不卡免费av| 蜜臀av一区二区在线免费观看| 亚洲男同性恋视频| 国产亚洲成av人在线观看导航| 91精品免费观看| 欧美在线免费观看亚洲| 不卡高清视频专区| 国产另类ts人妖一区二区| 日日欢夜夜爽一区| 亚洲午夜免费福利视频| 亚洲欧洲一区二区三区| 久久麻豆一区二区| 欧美变态口味重另类| 欧美丝袜丝nylons| 色偷偷成人一区二区三区91| 成人性生交大合| 国产精品一二三区在线| 韩国女主播一区| 看国产成人h片视频| 日韩电影在线观看电影| 亚洲第一av色| 一区二区三区四区av| 综合av第一页| 中文字幕一区二区三区蜜月 | 国产成人av一区二区| 午夜激情综合网| 《视频一区视频二区| 国产精品女同一区二区三区| 久久久影视传媒| 久久综合九色综合97婷婷女人 | 欧美在线一二三| 在线免费观看一区|