Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs/keywords #9

Merged
merged 3 commits into from
Nov 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
- [toObject](#toobject)
- [toFloat](#tofloat)
- [Types](#types)
- [Sponsor me!](#sponsor-me)
- [Sponsor me](#sponsor-me)

## About

Expand Down Expand Up @@ -393,7 +393,7 @@ console.log(color.toObject(); // "0, 63, 92"

#### toFloat

The color object exposes a `toFloat` method, that allows to objectify to float valus, as in `0-1` instead of `0-255`/`0-100` from any color unit given to either a color object for the hsl units, or default rgb:
The color object exposes a `toFloat` method, that allows to objectify to float values, as in `0-1` instead of `0-255`/`0-100` from any color unit given to either a color object for the hsl units, or default rgb:

```ts
const color = new MoebiusColor('#003f5c');
Expand Down
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,33 @@
"type": "git",
"url": "git+ssh://git@github.com/phun-ky/moebius.git"
},
"keywords": [
"css",
"design",
"palette",
"palettes",
"color",
"colors",
"generation",
"javascript",
"complement",
"interpolate",
"monochrome",
"monochromatic",
"triad",
"triadic",
"tetrad",
"tetradic",
"hexad",
"hexadic",
"pentad",
"pentadic",
"split",
"chrome",
"chroma",
"chromatic",
"analogous"
],
"author": "Alexander Vassbotn Røyne-Helgesen <alexander+github.com@phun-ky.net>",
"license": "MIT",
"bugs": {
Expand Down