Update README.md

This commit is contained in:
javalang 2017-09-26 20:45:36 +02:00 committed by GitHub
parent 1cb491b81f
commit e3556c36cf

View File

@ -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