Rename White balance to ColorTemperature (#931)

* Update and rename src/modules/WhiteBalance/Module.js to src/modules/ColorTemperature/Module.js

* Rename src/modules/WhiteBalance/index.js to src/modules/ColorTemperature/index.js

* Update and rename src/modules/WhiteBalance/info.json to src/modules/ColorTemperature/info.json

* Update Modules.js

* Update MODULES.md

* Update MODULES.md

* Update Module.js

* Update info.json
This commit is contained in:
Harsh Khandeparkar
2019-03-25 19:41:55 +05:30
committed by Jeffrey Warren
parent 9be102e1dd
commit 95efe812c3
5 changed files with 12 additions and 12 deletions

View File

@@ -37,7 +37,7 @@ List of Module Documentations
32. [Saturation](#saturation-module)
33. [Threshold](#threshold)
34. [Tint](#tint)
35. [WhiteBalance](#white-balance)
35. [ColorTemperature](#color-temperature)
## crop-module
@@ -571,15 +571,15 @@ where `options` is an object with the following property:
* factor : amount of tint (default 0.5)
## White Balance
## Color Temperature
This Change the colour balance of the image by adjusting the colour temperature.
This changes the color temperature of the image.
## Usage
```js
sequencer.loadImage('PATH')
.addSteps('white-balance',options)
.addSteps('color-temperature',options)
.run()
```
where `options` is an object with the following property:

View File

@@ -36,5 +36,5 @@ module.exports = {
'saturation': require('./modules/Saturation'),
'threshold': require('./modules/Threshold'),
'tint': require('./modules/Tint'),
'white-balance': require('./modules/WhiteBalance')
}
'color-temperature': require('./modules/ColorTemperature')
}

View File

@@ -1,4 +1,4 @@
module.exports = function Balance(options, UI) {
module.exports = function ColorTemperature(options, UI) {
var output;
@@ -78,4 +78,4 @@ module.exports = function Balance(options, UI) {
UI: UI
}
}
}

View File

@@ -1,4 +1,4 @@
module.exports = [
require('./Module'),
require('./info.json')
]
]

View File

@@ -1,6 +1,6 @@
{
"name": "White Balance",
"description": "Change the colour balance of the image by adjusting the colour temperature.",
"name": "Color Temperature",
"description": "Changes the color temperature of the image.",
"inputs": {
"temperature": {
"type": "integer",
@@ -8,5 +8,5 @@
"default": 6000
}
},
"docs-link":"https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#white-balance"
"docs-link":"https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#color-temperature"
}