Doggie

A Cross-platform Library for Swift

View project on GitHub

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)