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

  • 2.3.4
  • github.​com
  • github.​com
  • 12 months ago
  • 46 minutes ago
  • 3 years ago

Installs

  • Total 9K
  • Win 6K
  • Mac 1K
  • Linux 959
Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12
Windows 1 6 5 4 6 7 3 2 5 1 4 3 5 1 4 4 6 2 4 6 6 4 2 6 3 3 3 4 4 2 3 2 5 8 1 2 4 4 4 5 3 2 3 6 4 2
Mac 1 1 0 0 0 3 2 4 0 0 0 0 1 3 1 0 1 0 2 3 0 0 1 0 0 1 3 1 2 1 1 1 1 1 1 3 1 0 0 0 2 2 2 3 0 0
Linux 0 2 0 1 2 0 0 0 2 1 1 1 0 1 1 0 1 2 1 1 3 3 2 1 1 0 1 1 3 0 1 0 1 0 1 2 1 0 0 0 1 0 0 1 1 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.