mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
Update README.md
This commit is contained in:
parent
1cb491b81f
commit
e3556c36cf
@ -1,26 +1,29 @@
|
||||
# update
|
||||
* new NgColorController , fixed style of color-controller (no popup, fixed height:125px, huebar width from 15px to 20px)
|
||||
* new BgColorController for handling two colors (i.e. foreground-background color)
|
||||
* new HSVColorController
|
||||
|
||||
![BgColorController](screen1.jpg)
|
||||
![NgColorController](screen2.jpg)
|
||||
![HSVColorController](screen3.jpg)
|
||||
|
||||
### Usage
|
||||
* addNgColor(properties,property) for NgColorController
|
||||
* addBgColor(properties,property) for BgColorController
|
||||
* addHSVColor(properties,property) for HSVColorController
|
||||
|
||||
Note:
|
||||
* For using BgColorController displaying a two colors, a second "property+bg" must be present. For Example:
|
||||
`var myProps={color:#ffffff,colorbg:#000000};
|
||||
datgui.addBgColor(myProps,color);`
|
||||
* Changing the height of all ColorControllers can be done by adding the height field in the CSS .dg.c tag: `
|
||||
* Changing the height for Ng/BgColorControllers can be done by adding the height field in the CSS .dg.c tag: `
|
||||
.c {
|
||||
float: left;
|
||||
width: 60%;
|
||||
height:125px; /*JLA*/
|
||||
position: relative;
|
||||
}
|
||||
`
|
||||
`. The height of HSVColorController is fixed internaly to 125px.
|
||||
|
||||
|
||||
# dat.GUI
|
||||
|
Loading…
Reference in New Issue
Block a user