mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix hex code length and use a exists hex to int method;
added docs for color codes
This commit is contained in:
parent
9ce34080f7
commit
6ca8dc18cf
3 changed files with 68 additions and 13 deletions
|
|
@ -19,3 +19,34 @@ Styles can be combined. Example:
|
|||
Output:
|
||||
|
||||
***<ins>Message</ins>*** using *~~combed~~ combined* styles<ins>~~.~~</ins>
|
||||
|
||||
# Colors
|
||||
|
||||
Text color can be set using a color code: [#RRGGBB]
|
||||
|
||||
|
||||
| Component | Purpose |
|
||||
| --------- | --------------------------------- |
|
||||
| R | Represents the intensity of red |
|
||||
| G | Represents the intensity of green |
|
||||
| B | Represents the intensity of blue |
|
||||
|
||||
### Example:
|
||||
|
||||
<span style="color: #ff0000">
|
||||
<span style="color:rgb(105, 105, 105)">
|
||||
[#ff0000]
|
||||
</span>Red Text
|
||||
</span>
|
||||
|
||||
<span style="color: #00ff00">
|
||||
<span style="color:rgb(105, 105, 105)">
|
||||
[#00ff00]
|
||||
</span>Green Text
|
||||
</span>
|
||||
|
||||
<span style="color: #0000ff">
|
||||
<span style="color:rgb(105, 105, 105)">
|
||||
[#0000ff]
|
||||
</span>Blue Text
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -19,3 +19,33 @@
|
|||
Вывод:
|
||||
|
||||
***<ins>Сообщение</ins>***, демонстрирующее *~~обедненные~~ объединенные* стили<ins>~~.~~</ins>
|
||||
|
||||
## Цвета
|
||||
|
||||
Цвет текста задается при помощи цветового кода: [#RRGGBB]
|
||||
|
||||
| Компонент | Назначение |
|
||||
| ------------ | ------------------------- |
|
||||
| R | Используется для интенсивности красного |
|
||||
| G | Используется для интенсивности зеленого |
|
||||
| B | Используется для интенсивности синего |
|
||||
|
||||
### Например:
|
||||
|
||||
<span style="color: #ff0000">
|
||||
<span style="color:rgb(105, 105, 105)">
|
||||
[#ff0000]
|
||||
</span>Красный Текст
|
||||
</span>
|
||||
|
||||
<span style="color: #00ff00">
|
||||
<span style="color:rgb(105, 105, 105)">
|
||||
[#00ff00]
|
||||
</span>Зеленый Текст
|
||||
</span>
|
||||
|
||||
<span style="color: #0000ff">
|
||||
<span style="color:rgb(105, 105, 105)">
|
||||
[#0000ff]
|
||||
</span>Синий Текст
|
||||
</span>
|
||||
Loading…
Add table
Add a link
Reference in a new issue