» 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

~13h ago

mediadog: And then come to the opening of Paradise that evening: http://bit.ly/2naJNcz

~13h ago

mediadog: In central NY Friday? Doing demo and panel talk "Making VR in VR with vvvv" as Sundance Ignite at SU: http://bit.ly/2mY56Ns

~2d ago

dominikKoller: Christina Engelbart and Bret Victor made a video digest of the Mother of All Demons http://www.dougengelbart.org/firsts/1968-demo-interactive.html

~2d ago

tekcor: what a sweet thread... and no one replied.. wonder if the two best vvvv friends are still with us? https://discourse.vvvv.org/t/personality-through-a-node-happy-birthday-aurel/11330

~2d ago

tekcor: @skyliner: district9 ship cg node graph, nice find!

~4d ago

microdee: now VPDB supports filters from URL hash notation, like https://vvvvpm.github.io/#dx11-vvvv/latest enjoy! ;)

~4d ago

bjoern: Does anyone have the material from the Openscad workshop: http://node15.vvvv.org/program/workshop/3d-printing-vvvv-and-openscad @elektromeier ?