『我闪网~www.5shan.com』

Categories

-=高翔自己的Flash天空=-
首页

Links

New Comments

Counter

Calendar

JColor的静态方法-rgb()

Author:我闪 PublishTime:2004-12-11

公开课总算讲完了,校内也要停课放假了。^-^ 现在可以专心的写程序了,哈哈,真爽~

为JColor类添加了rgb方法:

//静态方法,返回颜色值。用法:JColor.rgb(255, 0, 0)则为绿色,返回数值65280
public static function rgb(r:Number, g:Number, b:Number):Number {
var color_n:Number = Number("0x"+r.toString(16)+g.toString(16)+b.toString(16));
return color_n;
}

JColor类:http://www.5dblog.com/vip/5shan/index.asp?id=35829

Comments

{CommentAuthor} at {CommentTime} | {CommentEmail} {CommentUrl} {CommentIp}
{CommentContent}
Powered by 5DBlog.com