Skip to content

Commit b6a9a1e

Browse files
authored
Merge pull request #360 from koto-lang/lib-improvements
Rework the color module
2 parents 363754c + 4f59eb2 commit b6a9a1e

File tree

14 files changed

+659
-628
lines changed

14 files changed

+659
-628
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,13 @@ The Koto project adheres to
6363
target type's bounds, instead of wrapping.
6464
- `KString` will now inline short strings to reduce allocations.
6565

66+
#### Libs
67+
68+
- The `color` module has been reworked to support working with alternative
69+
color spaces.
70+
- `Oklab` and `Oklch` color spaces have been added.
71+
- `color.hex` has been added to support initializing colors with hex triples.
72+
6673
### Removed
6774

6875
#### API

Cargo.lock

Lines changed: 49 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ circular-buffer = "0.1.8"
1313
criterion = "0.5.1"
1414
# A crossplatform terminal library for manipulating terminals.
1515
crossterm = "0.27.0"
16+
# Adds #[derive(x)] macros for more traits
17+
derive_more = "1.0.0"
1618
# Derive macro to get the name of a struct, enum or enum variant
1719
derive-name = "1.1.0"
1820
# Trait object downcasting support using only safe Rust.
@@ -22,7 +24,7 @@ dunce = "1.0.2"
2224
# A small cross-platform library for retrieving random data from system source
2325
getrandom = "0.2.4"
2426
# A simple and fast 3D math library for games and graphics
25-
glam = "0.22.0"
27+
glam = "0.29.0"
2628
# Shared definitions of home directories.
2729
home = "0.5.5"
2830
# A Rust library for conveniently watching and handling file changes.
@@ -37,10 +39,8 @@ itertools = "0.12.1"
3739
lazy_static = "1.4.0"
3840
# Performance and security oriented drop-in allocator
3941
mimalloc = { version = "0.1.39", default-features = false }
40-
# The core components of nannou - a creative coding framework for Rust.
41-
nannou_core = "0.18.0"
4242
# Convert and manage colors with a focus on correctness, flexibility and ease of use.
43-
palette = "0.7.2"
43+
palette = "0.7.6"
4444
# More compact and efficient implementations of the standard synchronization primitives.
4545
parking_lot = "0.12.1"
4646
# An ultra simple CLI arguments parser.

0 commit comments

Comments
 (0)