sponsor Vim development Vim logo Vim Book Ad

colors : Functions to manipulate color values (vim7).

 script karma  Rating 4/1, Downloaded by 1030  Comments, bugs, improvements  Vim wiki

created by
Mikolaj Machowski
 
script type
utility
 
description
Rgb2Hsv - change RGB into HSV colorspace
Hsv2Rgb - change HSV into RGB colorspace

r, g, b [0..255]
h [0..359]
s, v [0..255] sic!

Hex2Rgb - change Hex notation (#ffffff) into rgb [255,255,255]
Rgb2Hex - change RGB notation into Hex notation
Txt2Rgb - change text names of functions into RGB notation (names according to rgb.txt of X consortium)

In addition there is function ColorFormula which will tell if brightness and
color differences are good enough (according to W3C) to became background and text colors.
Good for testing colorschemes on HTML sites and Vim.
 
install details
:so colors.vim

May be placed in plugin directory
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
colors.vim 1.0 2006-01-14 6.0 Mikolaj Machowski Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github