This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

RGB_profiles_of_the_color_palette.gif(640 × 480 pixels, file size: 17 KB, MIME type: image/gif)

Summary

Description Standard color gradient made in Gnuplot : black-blue-red-yellow
Source self-made using Gnuplot
Author Adam majewski
Other versions

Gnuplot source code

set terminal gif
set output 'p.gif'
test palette

It means:

set palette rgbformulae 7,5,15

so

R=sqrt(x)

G=x^3

B=sin(360x)

C code

 /* this is part of code which shows how to get above gradient */
 unsigned char color3]; /* array */
 double psin(double position)
 {/* gives only positive values of sin because 0<=position<=1 */
  if (position<0.5) return sin(position*2*3.14);
    else  return 0;    
 }
 /*          */
 for(iY=0;iY<iYmax;++iY)
  {
   position=(double)iY/iYmax;
   /* compute  pixel color (24 bit = 3 bajts) */
   color0=(int)255*sqrt(position);/*color.R */
   color1=(int)255*position*position*position;/*color.G*/
   color2=(int)255*psin(position); /*color.B/
  }

See also other images of color gradients

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

Information

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current 10:43, 9 March 2008 Thumbnail for version as of 10:43, 9 March 2008640 × 480 (17 KB)Soul windsurfer{{Information |Description=Standard color gradient made in Gnuplot |Source=self-made |Date= |Author= Adam majewski |Permission= |other_versions= }}
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file:

This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

RGB_profiles_of_the_color_palette.gif(640 × 480 pixels, file size: 17 KB, MIME type: image/gif)

Summary

Description Standard color gradient made in Gnuplot : black-blue-red-yellow
Source self-made using Gnuplot
Author Adam majewski
Other versions

Gnuplot source code

set terminal gif
set output 'p.gif'
test palette

It means:

set palette rgbformulae 7,5,15

so

R=sqrt(x)

G=x^3

B=sin(360x)

C code

 /* this is part of code which shows how to get above gradient */
 unsigned char color3]; /* array */
 double psin(double position)
 {/* gives only positive values of sin because 0<=position<=1 */
  if (position<0.5) return sin(position*2*3.14);
    else  return 0;    
 }
 /*          */
 for(iY=0;iY<iYmax;++iY)
  {
   position=(double)iY/iYmax;
   /* compute  pixel color (24 bit = 3 bajts) */
   color0=(int)255*sqrt(position);/*color.R */
   color1=(int)255*position*position*position;/*color.G*/
   color2=(int)255*psin(position); /*color.B/
  }

See also other images of color gradients

Licensing

I, the copyright holder of this work, hereby publish it under the following licenses:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International, 3.0 Unported, 2.5 Generic, 2.0 Generic and 1.0 Generic license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
You may select the license of your choice.

Information

Captions

Add a one-line explanation of what this file represents

Items portrayed in this file

depicts

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current 10:43, 9 March 2008 Thumbnail for version as of 10:43, 9 March 2008640 × 480 (17 KB)Soul windsurfer{{Information |Description=Standard color gradient made in Gnuplot |Source=self-made |Date= |Author= Adam majewski |Permission= |other_versions= }}
No pages on the English Wikipedia use this file (pages on other projects are not listed).

Global file usage

The following other wikis use this file:


Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook