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

Color Convert

by zhouyuexie ALL

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

Details

Installs

  • Total 8K
  • Win 6K
  • Mac 1K
  • Linux 843
Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28
Windows 2 5 5 2 2 4 6 8 4 4 3 6 7 1 8 3 11 2 7 8 3 3 8 6 2 6 7 3 8 7 13 8 7 9 15 7 14 24 6 6 3 9 3 8 10 9
Mac 0 3 3 1 3 0 1 2 1 1 1 1 1 1 1 8 1 1 1 0 3 1 1 1 0 0 3 1 0 0 2 2 0 1 0 3 2 1 1 1 1 1 0 3 1 1
Linux 2 2 0 0 2 0 1 0 2 1 1 1 3 4 3 2 1 1 0 0 2 1 2 1 1 0 2 2 0 1 1 1 0 1 1 1 1 3 1 1 2 1 2 1 1 4

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.