» 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

~3h ago

graphicuserinterface: @zepi:skynet is becoming self aware

~19h ago

flateric: Thanks devvvvs, I owe you a few bananas next time we meet :)

~2d ago

kiilo: @rexmtl im going to foulab later ...

~2d ago

kiilo: @wxmtl YES im in Montreal please contact me in the IRC chat or skype

~2d ago

rexmtl: I need help learning VVVV. Anyone in Montreal willing to help> I'm desperate

~2d ago

mrboni: Ah haahh. So many contributions, so little time.. Thanks guys!