Added Colour Transition example. 83/250683/8
authorGyörgy Straub <g.straub@partner.samsung.com>
Thu, 31 Dec 2020 09:34:16 +0000 (09:34 +0000)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 4 Jan 2021 19:12:46 +0000 (19:12 +0000)
commitfd72b2661f9469dcec25f404fa556661349eae52
tree13d69bef4e9768714954f5283f646ba93b84ffdf
parent7c6e5f5fc21c97831378c0a83b6047f3daf8c2c4
Added Colour Transition example.

Demonstrates colour transition using flow maps and uv rotation / scaling.

Flow maps are greyscale images where the value of the pixels signifies the
progress of the animation, which is added to an animated value which we
use to lerp between old and new colour.

The colour of the content is used to scale the source / target colour, i.e.
white is affected most, dark is affected less.

Controls:
- Double-tap middle (33%) of screen: transition using random flow map;
- Double-tap outside the middle of screen: transition using one of the
  effects (flow maps) mapped to the given segment of the screen;

Change-Id: I8767d7632f30e489f9546c0f862bcdd05bb0305a
Signed-off-by: György Straub <g.straub@partner.samsung.com>
20 files changed:
com.samsung.dali-demo.xml
examples-reel/dali-examples-reel.cpp
examples/color-transition/color-transition-controller.cpp [new file with mode: 0644]
examples/color-transition/color-transition-controller.h [new file with mode: 0644]
examples/color-transition/color-transition.cpp [new file with mode: 0644]
examples/color-transition/utils.cpp [new file with mode: 0644]
examples/color-transition/utils.h [new file with mode: 0644]
resources/images/color-transition/blinds.png [new file with mode: 0644]
resources/images/color-transition/bubbles.png [new file with mode: 0644]
resources/images/color-transition/circular.png [new file with mode: 0644]
resources/images/color-transition/concentric.png [new file with mode: 0644]
resources/images/color-transition/conical.png [new file with mode: 0644]
resources/images/color-transition/image.png [new file with mode: 0644]
resources/images/color-transition/multi-circle.png [new file with mode: 0644]
resources/images/color-transition/radial.png [new file with mode: 0644]
resources/images/color-transition/spiral.png [new file with mode: 0644]
resources/images/color-transition/swipe.png [new file with mode: 0644]
resources/po/en_GB.po
resources/po/en_US.po
shared/dali-demo-strings.h