Skip to content

A library for color transformation and conversion between different color models

License

Notifications You must be signed in to change notification settings

alexesprit/colors

Repository files navigation

colors Latest version Workflow status

A library for color transformation and conversion between different color models written in V.

Features

  • Structures to represent different color models
  • Functions to convert colors between different color models
  • Functions to compare two instances of a color model
  • Functions to return a string representation of a color model
  • Functions to transform colors

Installation

You can install this module using the following command:

# Install via `vpm`
> v install alexesprit.colors

# Install via `vpkg`
> vpkg get colors

Usage

import alexesprit.colors

fn main() {
    val := colors.RGB { 100, 150, 20 }

    println(val.hsl())
    println(val.hsv())
}
hsl(83, 76%, 33%)
hsv(83, 87%, 59%)

For more details see the documentation.

License

Licensed under the MIT License.

About

A library for color transformation and conversion between different color models

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published