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 5K
  • Win 4K
  • OS X 868
  • Linux 593
Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1
Windows 5 4 14 6 11 10 25 42 58 36 15 5 10 12 12 2 5 8 7 12 11 9 11 7 4 11 6 9 4 10 7 4 3 5 10 2 16 7 5 10 5 7 5 11 5 5
OS X 0 1 5 1 1 4 5 3 1 3 0 0 2 2 1 0 2 2 1 2 0 0 0 1 0 0 0 2 2 0 0 1 2 1 2 1 0 2 2 0 1 15 3 8 1 0
Linux 0 0 1 2 0 2 2 0 3 1 1 0 1 2 1 1 0 0 0 2 1 3 0 1 2 1 3 1 2 0 0 0 0 0 2 2 4 0 1 1 1 1 1 1 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.