@quenty/color3utils
Advanced tools
Comparing version 2.0.1-canary.9c1fd3b.0 to 2.0.1
@@ -6,3 +6,3 @@ # Change Log | ||
## [2.0.1-canary.9c1fd3b.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/color3utils@2.0.0...@quenty/color3utils@2.0.1-canary.9c1fd3b.0) (2021-09-11) | ||
## [2.0.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/color3utils@2.0.0...@quenty/color3utils@2.0.1) (2021-12-30) | ||
@@ -9,0 +9,0 @@ **Note:** Version bump only for package @quenty/color3utils |
MIT License | ||
Copyright (c) 2014 Quenty | ||
Copyright (c) 2014-2021 Quenty | ||
@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy |
{ | ||
"name": "@quenty/color3utils", | ||
"version": "2.0.1-canary.9c1fd3b.0", | ||
"version": "2.0.1", | ||
"description": "Utility methods for Roblox Color3 values", | ||
@@ -30,3 +30,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "9c1fd3b43a16f8bc00caafbbb3f7092b4e5cc9eb" | ||
"gitHead": "d146c77d0a8e452824de0ab0b4b03ba0370bcc1b" | ||
} |
## Color3Utils | ||
<div align="center"> | ||
<a href="http://quenty.github.io/api/"> | ||
<img src="https://img.shields.io/badge/docs-website-green.svg" alt="Documentation" /> | ||
<a href="http://quenty.github.io/NevermoreEngine/"> | ||
<img src="https://github.com/Quenty/NevermoreEngine/actions/workflows/docs.yml/badge.svg" alt="Documentation status" /> | ||
</a> | ||
<a href="https://discord.gg/mhtGUS8"> | ||
<img src="https://img.shields.io/badge/discord-nevermore-blue.svg" alt="Discord" /> | ||
<img src="https://img.shields.io/discord/385151591524597761?color=5865F2&label=discord&logo=discord&logoColor=white" alt="Discord" /> | ||
</a> | ||
@@ -16,25 +16,7 @@ <a href="https://github.com/Quenty/NevermoreEngine/actions"> | ||
<div align="center"><a href="https://quenty.github.io/NevermoreEngine/api/Color3Utils">View docs →</a></div> | ||
## Installation | ||
``` | ||
npm install @quenty/color3utils --save | ||
``` | ||
## Usage | ||
Usage is designed to be simple. | ||
### `Color3Utils.getRelativeLuminance(color)` | ||
Luminance as per W3 per sRGB colorspace normalized with 0 | ||
### `Color3Utils.textShouldBeBlack(color)` | ||
Returns whether or not the text should be black using | ||
### `Color3Utils.scaleValue(color3, percent)` | ||
### `Color3Utils.setValue(color3, value)` | ||
### `Color3Utils.setHue(color3, hue)` | ||
### `Color3Utils.scaleSaturation(color3, percent)` | ||
### `Color3Utils.setSaturation(color3, saturation)` | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
6282
1
21