# 3. Attributes

#### Size (Column\<f64>)

* f64 -> f64

#### Color (Column\<piet::Color>)

* \[-1.5, 3.2, ..] -> ColorMap (continuous)
* \[0, 5, 2, ..] -> user cast to categorical -> ColorCycle (categorical)
* \["a", "b", ..] -> user cast to categorical -> ColorCycle (categorical)
* \["red", "green", ..] -> arbitrary color
* None

When string, it supports css color strings with extensions.

Example of supported colors:

```
transparent
gold
rebeccapurple
lime
#0f0
#0f0f
#00ff00
#00ff00ff
rgb(0,255,0)
rgb(0% 100% 0%)
rgb(0 255 0 / 100%)
rgba(0,255,0,1)
hsl(120,100%,50%)
hsl(120deg 100% 50%)
hsl(-240 100% 50%)
hsl(-240deg 100% 50%)
hsl(0.3333turn 100% 50%)
hsl(133.333grad 100% 50%)
hsl(2.0944rad 100% 50%)
hsla(120,100%,50%,100%)
hwb(120 0% 0%)
hwb(480deg 0% 0% / 100%)
hsv(120,100%,100%)
hsv(120deg 100% 100% / 100%)
```

```
match dtype {
  Float64 => ColorMap,
  Categorical or Integer => ColorCycle,
  String => ColorName, 
}
```

#### Shape (Column\<Shape>)

* i64, string -> ShapeCycle (categorical)
* string -> shape name


---

# 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://ezel.rustic.dev/basics/3.-attributes.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.
