~ubuntu-branches/ubuntu/quantal/xdaliclock/quantal

« back to all changes in this revision

Viewing changes to gtk/hsv.h

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2010-04-20 08:42:20 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100420084220-j7ykvh34b2jx7hyv
Tags: 2.31-1
* New maintainer (Closes: #561233)
* New upstream release (Closes: #578379)
* debian/control:
  + Updated to Standards-Version 3.8.4
  + Added ${misc:Depends} to Depends
  + Updated debhelper dependency to 7
* debian/rules:
  + Do not do append to copyright file trick
  + Used dh_prep instead of dh_clean -k
* Converted package to new source format 3.0 (quilt)
* debian/copyright:
  + Added missing vroot.h copyright
  + Better copyright assignment, year for Author
* debian/patches/spelling-error-in-manpage_xdaliclock:
  + Added patch to fix manpage spelling mistake by Florian Ernst
    <florian@debian.org>

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* xscreensaver, Copyright (c) 1992, 1997 Jamie Zawinski <jwz@jwz.org>
2
 
 *
3
 
 * Permission to use, copy, modify, distribute, and sell this software and its
4
 
 * documentation for any purpose is hereby granted without fee, provided that
5
 
 * the above copyright notice appear in all copies and that both that
6
 
 * copyright notice and this permission notice appear in supporting
7
 
 * documentation.  No representations are made about the suitability of this
8
 
 * software for any purpose.  It is provided "as is" without express or 
9
 
 * implied warranty.
10
 
 */
11
 
 
12
 
#ifndef __HSV_H__
13
 
#define __HSV_H__
14
 
 
15
 
/* Converts between RGB and HSV color spaces.
16
 
   R, G, and B are in the range 0 - 65535;
17
 
   H is in the range 0 - 360;
18
 
   S and V are in the range 0.0 - 1.0.
19
 
 */
20
 
extern void hsv_to_rgb (int h, double s, double v,
21
 
                        unsigned short *r,
22
 
                        unsigned short *g,
23
 
                        unsigned short *b);
24
 
extern void rgb_to_hsv (unsigned short r, unsigned short g, unsigned short b,
25
 
                        int *h, double *s, double *v);
26
 
 
27
 
#endif /* __HSV_H__ */