The OpenD Programming Language

Color.fromString

Reads a CSS style string to get the color. Understands #rrggbb, rgba(), hsl(), and rrggbbaa

struct Color
@safe static
fromString
(
scope const(char)[] s
)

Meta

History

The short-form hex string parsing (#fff) was added on April 10, 2020. (v7.2.0)