From 2c8567573d985f1acf50f098ea9104a67585ae9c Mon Sep 17 00:00:00 2001 From: c-mendoza Date: Mon, 4 Dec 2017 10:19:57 -0500 Subject: [PATCH] Adding opacity property to magSlide --- example/src/magSlide.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/example/src/magSlide.h b/example/src/magSlide.h index f216203..1320fe0 100644 --- a/example/src/magSlide.h +++ b/example/src/magSlide.h @@ -77,6 +77,16 @@ public: float getHeight() { return height; } + float getOpacity() const + { + return opacity; + } + + void setOpacity(float opacity) + { + magSlide::opacity = opacity; + } + /** * Change the display size of a slide. This will implicitly * set resizeOptions to ResizeOption.NoResize. @@ -135,6 +145,7 @@ protected: float width; float height; ofPoint position; + float opacity = 1.0; ResizeOptions resizeOption = NoResize; SlideState slideState = Off; bool isComplete = false;