Skip to content

Commit

Permalink
doc: include credits and release 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
leostera committed Dec 21, 2023
1 parent 1a5c558 commit 5c50fc3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changes

## Unreleased
## 0.0.1

* Introduce RGB, XYZ, LUV, UV types
* Include standard white reference point `d65`
Expand Down
3 changes: 2 additions & 1 deletion colors.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ homepage: "https://github.com/leostera/colors"
bug-reports: "https://github.com/leostera/colors/issues"
depends: [
"dune" {>= "3.11"}
"ocaml" {>= "4.08.0"}
"ocaml" {>= "4.13.0"}
"mdx" {with-test & >= "2.3.1"}
"odoc" {with-doc}
]
build: [
Expand Down
7 changes: 7 additions & 0 deletions colors/colors.ml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
(**
The majority of the following code to convert colors between RGB, Linear
RGB, XYZ, and LUV, was ported over from the go-colorful library.
Ref: https://github.com/lucasb-eyer/go-colorful/blob/6e6f2cdd7e293224a813cb9d5411a81ca5eb3029/colors.go
*)

type ansi = [ `ansi of int ]
type rgb = [ `rgb of int * int * int ]
type lrgb = [ `lrgb of float * float * float ]
Expand Down
4 changes: 3 additions & 1 deletion dune-project
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
(package
(name colors)
(synopsis "A pure OCaml library for manipulating colors across color spaces")
(depends (ocaml (>= "4.08.0")))
(depends
(ocaml (>= "4.13.0"))
(mdx (and :with-test (>= "2.3.1"))))
(tags
(color "color spaces" "color transformations" "color blending" luv xyz rgb "linear rgb" srgb uv "reference colors")))

0 comments on commit 5c50fc3

Please sign in to comment.