UNPKG

value-color

Version:

Library for working with colors. Includes RGB and HSL creation, gradients, and built-in names.

8 lines (4 loc) 178 B
/* @flow */ import type { Int, Float } from "./Number" export const turns = (n: Float): Float => 2 * Math.PI * n export const degrees = (n: Float): Float => n * Math.PI / 180