summaryrefslogtreecommitdiff
path: root/app/client/modules/pix2pixhd
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-07-16 18:39:36 +0200
committerJules Laplace <julescarbon@gmail.com>2018-07-16 18:39:36 +0200
commit2b264130ef745d81603468ee3bc2bdef75611726 (patch)
tree110b96440dd864ac68ed7560892cb11ffa3ebbbd /app/client/modules/pix2pixhd
parent623a3751c619625a57578a71d859a7d0545ce5f6 (diff)
rotate/scale
Diffstat (limited to 'app/client/modules/pix2pixhd')
-rw-r--r--app/client/modules/pix2pixhd/views/pix2pixhd.live.js23
1 files changed, 19 insertions, 4 deletions
diff --git a/app/client/modules/pix2pixhd/views/pix2pixhd.live.js b/app/client/modules/pix2pixhd/views/pix2pixhd.live.js
index 01bac9e..5443638 100644
--- a/app/client/modules/pix2pixhd/views/pix2pixhd.live.js
+++ b/app/client/modules/pix2pixhd/views/pix2pixhd.live.js
@@ -200,7 +200,22 @@ class Pix2PixHDLive extends Component {
min={0} max={1} type='float'
/>
</ParamGroup>
+
+ <ParamGroup
+ title='Transform'
+ name='transform'
+ >
+ <Slider live
+ name='rotate'
+ min={-1} max={1} type='float'
+ />
+ <Slider live
+ name='scale'
+ min={0.9} max={1.1} type='float'
+ />
+ </ParamGroup>
</div>
+
<div className='column'>
<ParamGroup
title='Clahe'
@@ -255,20 +270,20 @@ class Pix2PixHDLive extends Component {
</ParamGroup>
<ParamGroup
- title='HSL Transformation'
+ title='Hue / Saturation'
name='hsl'
>
<Slider live
name='hue'
- min={-1.0} max={1.0} type='float'
+ min={-127} max={127} type='int'
/>
<Slider live
name='saturation'
- min={-1.0} max={1.0} type='float'
+ min={-255} max={255} type='int'
/>
<Slider live
name='luminosity'
- min={-1.0} max={1.0} type='float'
+ min={-255} max={255} type='int'
/>
</ParamGroup>