royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [royale-asjs] 01/14: Make color values consistent with opacity, a decimal between 0 and 1.
Date Sun, 02 Sep 2018 08:57:31 GMT
This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch feature/Merge_MXRoyale_To_Develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git

commit 1b9ca0d14e9fd2456622e9d0349e120e9817fb34
Author: DESKTOP-RH4S838\Yishay <yishayjobs@hotmail.com>
AuthorDate: Tue Jul 10 13:45:32 2018 +0300

    Make color values consistent with opacity, a decimal between 0 and 1.
---
 .../royale/org/apache/royale/svg/ColorMatrixFilterElement.as   | 10 +++++-----
 .../src/main/royale/org/apache/royale/svg/DropShadowFilter.as  |  8 ++++----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as
b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as
index 5e38562..924edb7 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/ColorMatrixFilterElement.as
@@ -54,13 +54,13 @@ package org.apache.royale.svg
 			super.onInitComplete(e);
 			COMPILE::JS 
 			{
-				var matrixValues:String = "0 0 0 0 " + red / 255 + " 0 0 0 0 " + green  / 255 + " 0 0
0 0 " + blue / 255 + " 0 0 0 " + opacity + " 0";
+				var matrixValues:String = "0 0 0 0 " + red + " 0 0 0 0 " + green + " 0 0 0 0 " + blue
+ " 0 0 0 " + opacity + " 0";
 				filterElement.setAttribute("values", matrixValues);
 			}
 		}
 
 		/**
-		 *  The red value
+		 *  The red value. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
@@ -78,7 +78,7 @@ package org.apache.royale.svg
 		}
 
 		/**
-		 *  The blue value
+		 *  The blue value. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
@@ -96,7 +96,7 @@ package org.apache.royale.svg
 		}
 
 		/**
-		 *  The green value
+		 *  The green value. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
@@ -114,7 +114,7 @@ package org.apache.royale.svg
 		}
 
 		/**
-		 *  The opacity value
+		 *  The opacity value. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as
b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as
index aa3f06a..f974de4 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/DropShadowFilter.as
@@ -192,7 +192,7 @@ package org.apache.royale.svg
 		}
 
 		/**
-		 *  The red component of the drop shadow
+		 *  The red component of the drop shadow. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
@@ -210,7 +210,7 @@ package org.apache.royale.svg
 		}
 
 		/**
-		 *  The green component of the drop shadow
+		 *  The green component of the drop shadow. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
@@ -228,7 +228,7 @@ package org.apache.royale.svg
 		}
 
 		/**
-		 *  The blue component of the drop shadow
+		 *  The blue component of the drop shadow. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2
@@ -246,7 +246,7 @@ package org.apache.royale.svg
 		}
 
 		/**
-		 *  The opacity component of the drop shadow
+		 *  The opacity component of the drop shadow. This should be a number between 0 and 1.
 		 *
 		 *  @langversion 3.0
 		 *  @playerversion Flash 10.2


Mime
View raw message