# Rating

For now, `5 stars` is the only available rating decoration.

#### Available properties:

| Property                                                                                                                                                                                                   | Description                                                                                                                                                                                                                                             |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`rating_score`**                                                                                                                                                                                         | Number between 0-100. **Score of the rating on a scale of 100.**                                                                                                                                                                                        |
| **`star_dimension`**                                                                                                                                                                                       | Number between 4-400. **Size in pixels of one star.**                                                                                                                                                                                                   |
| <p><strong><code>star\_margin</code></strong><br></p>                                                                                                                                                      | Number between 0-100. **Margins in pixels between stars.**                                                                                                                                                                                              |
| <p><strong><code>star\_color</code></strong><br></p>                                                                                                                                                       | <p>String. <a href="/pages/EEHnfOWxoSTaxz6N7LhN#image-background">6-8 digits hexadecimal color</a> or <a href="/pages/EEHnfOWxoSTaxz6N7LhN#cmyka">cmyka format</a> (for print)<br><strong>Represents the color of the filled star</strong>s.</p>        |
| <p><strong><code>background\_color</code></strong><br></p>                                                                                                                                                 | <p>String.<a href="/pages/EEHnfOWxoSTaxz6N7LhN#image-background"> 6-8 digits hexadecimal color</a> or <a href="/pages/EEHnfOWxoSTaxz6N7LhN#cmyka">cmyka format</a> (for print)</p><p><strong>Represents the background color of all stars.</strong></p> |
| <p><strong><code>shadow\_color</code></strong><br><strong><code>shadow\_blur</code></strong><br><strong><code>shadow\_offset\_x</code></strong><br><strong><code>shadow\_offset\_y</code></strong><br></p> | [Go to Shadow documentation](/rest-api/generation/element-properties.md#shadow)                                                                                                                                                                         |

#### Example:

<table data-header-hidden><thead><tr><th width="418"></th><th></th></tr></thead><tbody><tr><td><code>"rating_score": 64,</code><br><code>"star_dimension": 40,</code><br><code>"star_margin": 10,</code><br><code>"star_color": "#FF0000",</code><br><code>"background_color": "#EAEAEA80"</code></td><td><img src="/files/DT3RgveE4Yl79JTIkOAF" alt=""></td></tr><tr><td><code>"rating_score": 64,</code><br><code>"star_dimension": 40,</code><br><code>"star_margin": 10,</code><br><code>"star_color":"cmyka(0,100,100,0,100)",</code><br><code>"background_color":"cmyka(0,0,0,8,100"</code></td><td><img src="/files/DT3RgveE4Yl79JTIkOAF" alt=""></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developers.abyssale.com/rest-api/generation/element-properties/rating.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
