Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 333 Bytes

Color.md

File metadata and controls

15 lines (8 loc) · 333 Bytes

Introduction

A type to define a color with a color space to specify how to interpret it.

Usage

Define a color

To define a color, you need to provide the color space and the color component values of the color.

let red = Color(colorSpace: .sRGB, color: RGBColorModel(red: 1, green: 0, blue: 0), opacity: 1)