From 797149c5a9ee0c7c70947f72cbaece5efd3dd687 Mon Sep 17 00:00:00 2001 From: Ludovic Pouzenc Date: Sat, 16 Jun 2012 22:29:33 +0000 Subject: Création du source tree princpal. Les routines de maths pour calculer le gain déconnent encore je trouve. Reste à intégrer la partie DMX et a améliorer tout ce qui a été laissé de côté... MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: file:///var/svn/2012-violon-leds/trunk@20 6be1fa4d-33ac-4c33-becc-79fcb3794bb6 --- src/hsv2rgb.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/hsv2rgb.h (limited to 'src/hsv2rgb.h') diff --git a/src/hsv2rgb.h b/src/hsv2rgb.h new file mode 100644 index 0000000..bd880ff --- /dev/null +++ b/src/hsv2rgb.h @@ -0,0 +1,18 @@ +#ifndef HSV2RGB_H +#define HSV2RGB_H + +struct hsv_colour { + float h; + float s; + float v; +}; /* end struct */ + +struct rgb_colour { + float r; + float g; + float b; +}; /* end struct */ + +int hsv2rgb( struct hsv_colour *hsv, struct rgb_colour *rgb ); + +#endif /* HSV2RGB_H */ -- cgit v1.2.3