diff --git a/README.md b/README.md index 4d10c8f..b2482e8 100644 --- a/README.md +++ b/README.md @@ -808,7 +808,7 @@ Clay_TextElementConfig { `CLAY_TEXT_CONFIG(.textColor = {120, 120, 120, 255})` -Conventionally accepts `rgba` float values between 0 and 255, but interpretation is left up to the renderer and does not affect layout. +Uses [Clay_Color](#clay_color). Conventionally accepts `rgba` float values between 0 and 255, but interpretation is left up to the renderer and does not affect layout. --- @@ -1352,6 +1352,14 @@ typedef struct Clay_BorderElementConfig **Fields** +**`.color`** - `Clay_Color` + +`CLAY({ .border = { .color = { 255, 0, 0, 255 } } })` + +Uses [Clay_Color](#clay_color). Specifies the shared color for all borders configured by this element. Conventionally accepts `rgba` float values between 0 and 255, but interpretation is left up to the renderer and does not affect layout. + +--- + **`.width`** - `Clay_BorderWidth` `CLAY({ .border = { .width = { .left = 2, .right = 10 } } })` @@ -1370,12 +1378,6 @@ Configures the width and color of borders to be drawn between children. These bo --- -**`.color`** - `Clay_Color` - -`CLAY({ .border = { .color = { 255, 0, 0, 255 } } })` - -Defines the radius in pixels for the arc of border corners (`0` is square, `rectangle.width / 2` is circular). It is up to the renderer to decide how to interpolate between differing border widths and colors across shared corners. - **Examples** ```C