@tempots/color

SRGB.fromString property

Creates an SRGB color instance from a string representation of an RGB color. The string should be in the format "rgb(r%, g%, b%)" where r, g, and b are the red, green, and blue color values respectively.

Signature:

static readonly fromString: (s: string) => SRGB;