w2ui
Home
Get started
Demos
Docs
Blog
Support
Layout
Grid
Toolbar
Sidebar
Tabs
Form
Popup
Utilities
ver 1.3
ver 1.4
ver 1.5
ver 2.0
Utilities
Overview
Properties
Methods
Other
Events
Plugins
w2utils.rgb2hsv
Converts RGB to HSV color definition
rgb2hsv(color)
color
object
Returns object.
Description
The
color
argument is an object, for example
w2utils.rgb2hsv({ r: 73, g: 164, b: 223, a: 1 })
Returns
{ h: 204, s: 67, v: 87, a: 1 }
See Also
parseColor
hsv2rgb
User Comments
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus