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

colors

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)



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

anonymous user login

Shoutbox

~46min ago

unti: does the selectjoint node cause an error on your systems too? it seems to occur when you hover over the window where you select joints

~9h ago

Jackal: works with the Xbox one also.

~9h ago

Urbankind: is Kinect V 1.5 is exclusive for Kinect PC or all the new features works with old kinect?

~10h ago

sapo: kinect 1.5 works with 27.2 vux nodes!

~13h ago

microdee: vvvv_45alpha28-develop-697babe... horny version number is horny:D

~13h ago

newsheng: @milo:thank you!

~21h ago

Jackal: Agree With @mediadog (:

~23h ago

mediadog: @elliotwoods re: ps3eye: You are a scholar and a gentleman!