» Colors
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Colors

French | Italian

In programming colors are specified using a color model which specifies how a color is being represented by typically 4 color components. vvvv uses the RGB color model and has the following nodes allowing colors to be specified:
RGB (Color Join)
HSL (Color Join)
HSV (Color Join)

and split up into their components:
RGB (Color Split)
HSL (Color Split)
HSV (Color Split)

The HSL and HSV variants are just other ways of representing points (colors) in an RGB color model which are typically more intuitive to adjust. That's why the IOBox (Color) uses the HSV representation by default. HSV is also sometimes called HSB.

The individual components of color models are often specified from 0 to 255 for red, green, blue and alpha, for 0 to 360° for the hue of a color and for 0 to 100% for the saturation and lightness or value/brightness. Not so in vvvv:

The most important thing to know about colors in vvvv is that the value range of their individual components is always 0 to 1.

While this allows for very efficient handling of colors within vvvv you may find it not so intuitive to enter constant values for individual component taken e.g. from other software. Consider the need to enter a constant value of 207° as the hue of a color. In this case just type into the IOBox:

 207/360

which will be evaluated to

 0,575

String representations

When you need to save a colors value as a string to a file or interpret a color from a string try the following nodes:

Operators

- (Color)
+ (Color)
* (Color)

Linear Interpolation between colors:
Blend (Color) = InputMorph (Color)

Conversion

HSLtoHSV (Color)
HSVtoHSL (Color)

Palettes

RetroColors (Color)
Windows98Colors (Color)
NetscapeColors (Color)
Spectrum (Color)
How to Choose Colours Procedurally



This is the landing page of the category Colors
Other pages in this category:

anonymous user login

Shoutbox

~5h ago

drupal_admin: hello. maintenance reboot at 02:10h should be back at 02:11h..

~6h ago

manuel: fake.art for 10.944

~6h ago

id144: domain http://nail.art just for €7644 :D

~14h ago

joreg: @all removed b35.1 downloads in preparation of a b35.2 fix release. sorry for the inconvenience!

~14h ago

joreg: @welovemedia: vvvvelcome!

~14h ago

welovemedia: @joreg, thanks! appreciate the fast help!

~14h ago

joreg: @welovemedia: yes, ignore

~14h ago

welovemedia: setup asks for c++ redistributable 2015, but newer version already installed (14.0.23918). anybody knows what to do? ignore?

~19h ago

tonfilm: play #doom on #porsche #911 by driving: https://www.youtube.com/watch?v=NRMpNA86e8Q