Scenic.Primitive.Style.Paint (Scenic v0.10.3) View Source

Paint is used to "fill" the area of primitives.

When you apply the :fill style to a primitive, you must supply valid paint data.

There are five types of paint.

See the documentation for each type for details.

Color Shortcut

Filling with a color is so common, you can just declare any valid color in a fill, and it will figure out the right paint to use.

Examples:

graph
|> rect({100,200}, fill: :blue)
|> rect({60,120}, fill: {:blue, 128})
|> rect({30,60}, fill: {10,20,30,40})