Skip to content

Colors: preview and picker

Color preview for Новый Цвет(...) and WebЦвета.*. Clicking the swatch opens the picker — choosing a color updates the code. Web colors convert to/from the RGB constructor representation.

Shortcut: automatic (click the swatch to open the picker)

← All features

Color decorator and picker

The cursor moves to a line with Новый Цвет(...) in demo.bsl. To the left of the constructor the editor draws a swatch showing the actual color of the value.

color-01

Interactive color picker updates the code

In colorweb.bsl the user clicks the swatch next to a color definition, opening the interactive color picker. Picking a different color in the palette immediately updates the color arguments right in the code.

color-02-picker

Convert a web color to its RGB representation

The cursor is on a web color (WebЦвета.*) in colorweb.bsl, and the user converts its representation via the picker. The web color turns into the Новый Цвет(...) RGB constructor while keeping the exact same color, and the swatch stays unchanged.

color-03-webcolor


← Back: Code lens · Next: Document links (hyperlinks) →