File:P hot.gif
来自Wikimedia Commons
跳转到导航
跳转到搜索
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 |
This file is licensed under the Creative Commons Attribution-Share Alike Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
- 您可以自由地:
- 共享 – 复制、发行并传播本作品
- 修改 – 改编作品
- 惟须遵守下列条件:
- 署名 – 您必须对作品进行署名,提供授权条款的链接,并说明是否对原始内容进行了更改。您可以用任何合理的方式来署名,但不得以任何方式表明许可人认可您或您的使用。
- 相同方式共享 – 如果您再混合、转换或者基于本作品进行创作,您必须以与原先许可协议相同或相兼容的许可协议分发您贡献的作品。
您可以选择您需要的许可协议。
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2008年3月9日 (日) 13:47 | 640 × 480(17 KB) | Soul windsurfer(留言 | 贡献) | {{Information |Description= |Source=self-made |Date= |Author= Adam majewski |Permission= |other_versions= }} |
您不可以覆盖此文件。
文件用途
以下7个页面使用本文件:
- File:Cubehelix gnuplot palette.png
- File:Gnuplot HSV gradient.png
- File:Gnuplot color gradient, defined as 0 0 0 0, 1 0 0 1, 3 0 1 0, 4 1 0 0, 6 1 1 1.png
- File:Gnuplot color gradient RGB defined ( 0 "red", 0.5 "yellow", 1 "green" ).png
- File:Gnuplot linear gray gradient.png
- File:Matlab gradient.png
- File:RGB profiles of the color palette.gif
全域文件用途
以下其他wiki使用此文件:
- en.wikipedia.org上的用途
- en.wikibooks.org上的用途
- ja.wikipedia.org上的用途
- pl.wikibooks.org上的用途
- pt.wikipedia.org上的用途
- zh.wikipedia.org上的用途