anseki / vscode-color

Helper with GUI to generate color codes such as CSS color notations.
MIT License
97 stars 27 forks source link

Add option to convert to RGB 8-bit codes #85

Closed tuur29 closed 5 years ago

tuur29 commented 5 years ago

Currently it outputs like rgb(82.7%, 18.4%, 18.4%), instead I would like rgb(211, 47, 47).

Steps to Reproduce:

  1. Select a color
  2. Run Convert Color
  3. Pick RGB / TGBA
anseki commented 5 years ago

Hi @tuur29, thank you for your comment.

You can specify style of the notation with the dialog box of Pick Color command.

  1. Open the dialog box via Pick Color command.
  2. Select RGB/RGBA in the drop-down list.
  3. Turn off the <RGB>% checkbox.

See document: https://github.com/anseki/vscode-color#convert-color

tuur29 commented 5 years ago

Aha, thanks for clarifying!

anseki commented 5 years ago

:smile:

anseki commented 5 years ago

Oops.. Sorry, I mistook Pick Color for Convert Color.

tuur29 commented 5 years ago

Oh, but it still works though