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
|
# update
|
||||||
* new NgColorController , fixed style of color-controller (no popup, fixed height:125px, huebar width from 15px to 20px)
|
* 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 BgColorController for handling two colors (i.e. foreground-background color)
|
||||||
|
* new HSVColorController
|
||||||
|
|
||||||
![BgColorController](screen1.jpg)
|
![BgColorController](screen1.jpg)
|
||||||
![NgColorController](screen2.jpg)
|
![NgColorController](screen2.jpg)
|
||||||
|
![HSVColorController](screen3.jpg)
|
||||||
|
|
||||||
### Usage
|
### Usage
|
||||||
* addNgColor(properties,property) for NgColorController
|
* addNgColor(properties,property) for NgColorController
|
||||||
* addBgColor(properties,property) for BgColorController
|
* addBgColor(properties,property) for BgColorController
|
||||||
|
* addHSVColor(properties,property) for HSVColorController
|
||||||
|
|
||||||
Note:
|
Note:
|
||||||
* For using BgColorController displaying a two colors, a second "property+bg" must be present. For Example:
|
* For using BgColorController displaying a two colors, a second "property+bg" must be present. For Example:
|
||||||
`var myProps={color:#ffffff,colorbg:#000000};
|
`var myProps={color:#ffffff,colorbg:#000000};
|
||||||
datgui.addBgColor(myProps,color);`
|
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 {
|
.c {
|
||||||
float: left;
|
float: left;
|
||||||
width: 60%;
|
width: 60%;
|
||||||
height:125px; /*JLA*/
|
height:125px; /*JLA*/
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
`
|
`. The height of HSVColorController is fixed internaly to 125px.
|
||||||
|
|
||||||
|
|
||||||
# dat.GUI
|
# dat.GUI
|
||||||
|
Loading…
Reference in New Issue
Block a user