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 701
  • Linux 487
Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26 May 25 May 24 May 23 May 22 May 21 May 20 May 19 May 18 May 17 May 16 May 15 May 14 May 13 May 12 May 11 May 10
Windows 6 8 4 8 8 7 5 6 6 3 5 5 9 5 8 4 4 9 8 7 9 2 0 7 5 8 8 5 9 6 6 8 11 3 10 7 3 6 10 4 4 5 4 4 6 8
OS X 2 1 0 1 3 0 1 5 1 1 6 0 1 2 1 2 1 4 1 1 2 2 1 2 0 1 4 0 0 1 1 1 4 1 2 1 1 2 3 1 1 2 2 1 4 1
Linux 4 1 1 1 2 0 0 0 0 1 0 0 3 1 3 0 0 2 1 0 0 0 0 3 0 1 0 1 3 0 1 0 1 1 2 0 0 2 2 2 2 1 1 0 0 1

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.