File:P hot.gif
来自testwiki
跳转到导航
跳转到搜索
P_hot.gif (640 × 480像素,文件大小:17 KB,MIME类型:image/gif)
本文件来自维基共享资源并可能被其他项目使用。 其文件描述页上的描述显示在下面。
此图片可使用矢量图形重新创建为SVG文件。这具有很多好处;更多信息请参见共享资源:待清理媒体。如果存在此图片的SVG格式,请将其上传,然后将此模板替换为
{{vector version available|新图片名称}}。
建议您将SVG命名为“P hot.svg”,这样在使用Vector version available(或Vva)模板时就不需要填写新图片名称参数。 |
摘要
| 描述P hot.gif | Hot color gradient in Gnuplot (black-red-yellow-white) |
| 来源 | self-made using Gnuplot |
| 作者 | Adam majewski |
| 其他版本 |
|
Gnuplot source code
set palette rgbformulae 21,22,23 set terminal gif set output 'p.gif' test palette
Numbers after rgbformulae denote number of color function ( see https://astro.uni-bonn.de/~ithies/gnuplot/colortools/rgbformulae.gp ) It means that:
- color.R=3x
- color.G=3x-1
- color.B=3x-2
C code
/* this is part of code which shows how to get above gradient */
unsigned char color[3]; /* array */
int convert2light(double p)
{
if (p<0) return 0;
if (p>1) return 255;
else return (int)255*p;
}
void GiveHotColorGradient(double position,unsigned char c[])
{ /* (black-red-yellow-white) */
c[0] = convert2light(3*position);
c[1] = convert2light(3*position-1);
c[2] = convert2light(3*position-2);
}
See also other images of color gradients
许可协议
我,本作品著作权人,特此采用以下许可协议发表本作品:
| 已授权您依据自由软件基金会发行的无固定段落及封面封底文字(Invariant Sections, Front-Cover Texts, and Back-Cover Texts)的GNU自由文件许可协议1.2版或任意后续版本的条款,复制、传播和/或修改本文件。该协议的副本请见“GNU Free Documentation License”。http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
- 您可以自由地:
- 共享 – 复制、发行并传播本作品
- 修改 – 改编作品
- 惟须遵守下列条件:
- 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
- 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
您可以选择您需要的许可协议。
说明
添加一行文字以描述该文件所表现的内容
此文件中描述的项目
描繪內容
某些值没有维基数据项目
知识共享署名-相同方式共享1.0通用 简体中文(已转写)
GNU自由文档许可证1.2或更高版本 简体中文(已转写)
知识共享署名-相同方式共享2.0通用 简体中文(已转写)
知识共享署名-相同方式共享2.5通用 简体中文(已转写)
文件历史
点击某个日期/时间查看对应时刻的文件。
| 日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
|---|---|---|---|---|---|
| 当前 | 2008年3月9日 (日) 14:47 | 640 × 480(17 KB) | wikimediacommons>Soul windsurfer | {{Information |Description= |Source=self-made |Date= |Author= Adam majewski |Permission= |other_versions= }} |
文件用途
以下页面使用本文件:
