Attribute.asColor

Returns the attribute cast to [pango.attr_color.AttrColor].

This is mainly useful for language bindings.

Returns

The attribute as [pango.attr_color.AttrColor],

or null if it's not a color attribute