color_sample

NAME

color_sample - creates an image of a specified color.

SYNOPSIS

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

DESCRIPTION

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).

OPTIONS

-h,--help,-?

Returns the manual page.

-R SHORT

value for red (0-255). Default: 0

-G SHORT

value for green (0-255). Default: 0

-B SHORT

value for blue (0-255). Default: 0

-H DOUBLE

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.

-S DOUBLE

value for saturation (0-1). Default: 1.

-V DOUBLE

value for value (0-1) [0 is black]. Default: 1.

-w INTEGER, --width INTEGER

width of the image in pixels. Default: 100.

-h INTEGER, --height INTEGER

height of the image in pixels. Default: 100.

AUTHORS

Written by Pierre Smars (first version: 2006)

BUGS

Reports of bugs or problems should be submitted via electronic mail to <smars@yuntech.edu.tw>.

COPYRIGHT

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.

Pierre SMARS (tools, home page)