ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Color Convert

by zhouyuexie ST2/ST3

sublime text 3 plug, support RGB2HEX & HEX2RGB and more convert mode.

Details

Installs

  • Total 4K
  • Win 3K
  • OS X 603
  • Linux 434
Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11
Windows 4 6 14 3 7 11 4 4 9 9 8 7 12 5 12 12 9 5 3 5 11 4 9 14 9 1 3 10 8 7 11 6 4 4 11 10 7 19 14 8 8 10 28 9 5 9
OS X 0 3 3 2 1 0 1 3 0 0 1 3 3 1 1 3 2 0 4 1 1 1 2 0 1 2 2 1 2 1 3 4 0 0 0 4 2 3 3 3 0 1 3 5 2 4
Linux 0 2 0 0 0 1 3 2 1 3 0 3 3 1 0 1 1 2 1 0 1 2 3 1 1 0 0 1 1 2 0 1 1 0 0 5 1 0 2 2 0 1 0 0 1 3

Readme

Source
raw.​githubusercontent.​com

ColorConvert

sublime text 3 plug-in, Support RGB,RGBA,HEX,HSL,HSLA,HSV,CMYK to transform each other.

DEMO

Installation

  • You can easily install the plug-in through Package Control (https://packagecontrol.io/).

  • If you want to install this plug-in manually for some reason, simply clone this repo into your packages directory (make sure not to put it in the user sub dir).

Instruction

  1. Select a color declaration (e.g. '#008080', 'rgb(0,128,128)', or 'hsl(39.84,100.0%,25.1%)')
  2. Mac user can use cmd+alt+c, Windows and Linux user can use ctrl+alt+c

OR:

  1. Select a color declaration
  2. Right click and choose ColorConvert, click the mode you need to convert.

Settings

  • convert_mode: convert to rgba mode, default rgb
  • capitalization: whether the converted letters need to be capitalized, default false.
  • is_android: Hex containing transparency is not the same format in android and css,if you are a Android Developer, please change it to true.
  • loss_transparent: allow loss transparent in hex_to_colorname, default false.

Support

  • Support RGB,RGBA,HEX,HSL,HSLA,HSV,CMYK to convert each other.
  • Support css3 color name convert to HEX
  • Support convert the color values in the entire page.
  • Support css color name and hex conversion

Notes

  1. Do not support css3 color:transparent and currentColor.
  2. When RGBA is converted to other color value(like RGB,HSL etc…) it will lose the alpha value.
  3. Some values are lost when some precision values are converted to CMYK and HSV, this is the result of the algorithm, so be careful in the process of using it.