color_sample - creates an image of a specified color.
color_sample [-?|-h|--help] [-R SHORT] [-G SHORT] [-B SHORT] [-H DOUBLE] [-S DOUBLE] [-V DOUBLE] [-h INTEGER||--height INTEGER] [-w INTEGER||--width INTEGER] FILE_OUT
color_sample creates an image FILE_OUT of size width*height (default: 100x100) with a color specified by R,G,B or Hue, Saturation, Value. FILE_OUT can be jpg, tiff or png (recognized by its extension).
Returns the manual page.
value for red (0-255). Default: 0
value for green (0-255). Default: 0
value for blue (0-255). Default: 0
value for hue (0-1) [0 is red, 0.33 is green, 0.66 is blue]. Default: 1. Specifying one of the options H, S or V desactivates options R, G and B.
value for saturation (0-1). Default: 1.
value for value (0-1) [0 is black]. Default: 1.
width of the image in pixels. Default: 100.
height of the image in pixels. Default: 100.
Written by Pierre Smars (first version: 2006)
Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.
Copyright (C) 2015 Pierre Smars. License GPLv2 <http://www.gnu.org/licenses/gpl-2.0.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.