From aa83860628586d84dd5d292776a4a72f798f64b4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Aug 2024 12:46:19 +0530 Subject: [PATCH] Cleanup formatting --- docs/color-stack.rst | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/docs/color-stack.rst b/docs/color-stack.rst index 4d116b976..937a1fe65 100644 --- a/docs/color-stack.rst +++ b/docs/color-stack.rst @@ -141,22 +141,24 @@ compatibility, but a sane, rigorously specified subset is chosen. RGB colors are encoded in one of three forms: -rgb:// - , , := h | hh | hhh | hhhh - h := single hexadecimal digits (case insignificant) - Note that h indicates the value scaled in 4 bits, hh the value scaled in 8 bits, hhh the value scaled in 12 bits, and hhhh the value scaled - in 16 bits, respectively. +``rgb://`` + | , , := h | hh | hhh | hhhh + | h := single hexadecimal digits (case insignificant) + | Note that h indicates the value scaled in 4 bits, hh the value scaled in 8 bits, + hhh the value scaled in 12 bits, and hhhh the value scaled in 16 bits, respectively. -# - h := single hexadecimal digits (case insignificant) - #RGB (4 bits each) - #RRGGBB (8 bits each) - #RRRGGGBBB (12 bits each) - #RRRRGGGGBBBB (16 bits each) - The R, G, and B represent single hexadecimal digits. When fewer than 16 bits each are specified, they represent the most significant bits - of the value (unlike the “rgb:” syntax, in which values are scaled). For example, the string ``#3a7`` is the same as ``#3000a0007000``. +``#`` + | h := single hexadecimal digits (case insignificant) + | #RGB (4 bits each) + | #RRGGBB (8 bits each) + | #RRRGGGBBB (12 bits each) + | #RRRRGGGGBBBB (16 bits each) + | The R, G, and B represent single hexadecimal digits. When fewer than 16 bits + each are specified, they represent the most significant bits of the value + (unlike the “rgb:” syntax, in which values are scaled). For example, + the string ``#3a7`` is the same as ``#3000a0007000``. -rgbi:// +``rgbi://`` red, green, and blue are floating-point values between 0.0 and 1.0, inclusive. The input format for these values is an optional sign, a string of numbers possibly containing a decimal point, and an optional exponent field containing an E or e followed by a possibly signed integer string.