Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Copypeng/react-native-HsvToRgb
a helper to convert HSV(HSB) color to RGB
https://github.com/Copypeng/react-native-HsvToRgb
Last synced: 5 days ago
JSON representation
a helper to convert HSV(HSB) color to RGB
- Host: GitHub
- URL: https://github.com/Copypeng/react-native-HsvToRgb
- Owner: Copypeng
- License: mit
- Created: 2015-10-14T14:24:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T14:19:57.000Z (about 9 years ago)
- Last Synced: 2024-08-16T17:54:16.200Z (4 months ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 4
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-HsvToRgb ★3 - a helper to convert HSV(HSB) color to RGB. (Components / Utils & Infra)
- awesome-react-native - react-native-HsvToRgb ★3 - a helper to convert HSV(HSB) color to RGB. (Components / Utils & Infra)
- awesome-react-native - react-native-HsvToRgb ★3 - a helper to convert HSV(HSB) color to RGB. (Components / Utils & Infra)
- awesome-react-native - react-native-HsvToRgb ★3 - a helper to convert HSV(HSB) color to RGB. (Components / Utils & Infra)
- awesome-react-native-ui - react-native-HsvToRgb ★2 - a helper to convert HSV(HSB) color to RGB. (Components / Utils & Infra)
README
## Introduction
A helper to convert HSV(HSB) color to RGB.
As in react native framework, only #hex|rbg|rbga colors are accepted,I made this helper to convert HSV to RGB.
## Install
just download
HsvToRgb.js
Please.## Usage
var HsvToRgb = require('../helper/HsvToRgb.js');
...// accepts parameters
// h, hue, 0.0 to 1.0
// s, saturation, 0.0 to 1.0
// v, lightness or brightness, 0.0 to 1.0var colorString = HsvToRgb.getRGBString(h,s,v); //retun "rbg(r,g,b)"
var color = HsvToRgb.getRGB(h,s,v); //return {r,g,b}