manpagez: man pages & more
info bigloo
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

19.3 Color

The multimedia library provides functions for dealing with colors.

Bigloo Multimedia procedure: hsv->rgb h s v
Bigloo Multimedia procedure: hsl->rgb h s l
Bigloo Multimedia procedure: rgb-hsv r g b
Bigloo Multimedia procedure: rgb-hsl r g b

These procedures converts from and to HSV, HSL, and RGB representations. The argument h is an integer in the range [0..360], the arguments s, v, and l in the range [0..100]. The arguments r, g, and b are in the range [0..255]. These procedures returns multiple-values.

(multiple-value-bind (r g b)
   (hsv->rgb 340 34 56)
   (list r g b)) ⇒ (143 94 110)
(multiple-value-bind (h s v)
   (rgb->hsv 255 0 0)
   (list h s v)) ⇒ (0 100 100)

This document was generated on March 31, 2014 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.