"units": "USER_SPACE",
"stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
+ },
+
+ "BubbleColor1":
+ {
+ "color": [ 0.3255, 0.3412, 0.6353, 0.32 ]
+ },
+
+ "BubbleColor2":
+ {
+ "color": [ 0.3647, 0.7569, 0.8157, 0.32 ]
+ },
+
+ "BubbleColor3":
+ {
+ "color": [ 0.3804, 0.7412, 0.6510, 0.32 ]
+ },
+
+ "BubbleColor4":
+ {
+ "color": [ 1, 1, 1, 0.13 ]
}
+
}
}
"units": "USER_SPACE",
"stopColor": [[0,0,0,1.0],[0.556863,0.054902,0,1.0]]
}
+ },
+
+ "BubbleColor1":
+ {
+ "color": [ 0.8255, 0.2412, 0.1353, 0.32 ]
+ },
+
+ "BubbleColor2":
+ {
+ "color": [ 0.8647, 0.4569, 0.3157, 0.32 ]
+ },
+
+ "BubbleColor3":
+ {
+ "color": [ 0.9804, 0.5412, 0.5510, 0.32 ]
+ },
+
+ "BubbleColor4":
+ {
+ "color": [ 1, 0, 0, 0.13 ]
}
+
}
}
"units": "USER_SPACE",
"stopColor": [[0.247,0.38,0.52,1.0],[0.055,0.18,0.286,1.0]]
}
+ },
+
+ "BubbleColor1":
+ {
+ "color": [ 0.3255, 0.3412, 0.6353, 0.32 ]
+ },
+
+ "BubbleColor2":
+ {
+ "color": [ 0.3647, 0.7569, 0.8157, 0.32 ]
+ },
+
+ "BubbleColor3":
+ {
+ "color": [ 0.3804, 0.7412, 0.6510, 0.32 ]
+ },
+
+ "BubbleColor4":
+ {
+ "color": [ 1, 1, 1, 0.13 ]
}
+
}
}
"units": "USER_SPACE",
"stopColor": [[0,0,0,1.0],[0.556863,0.054902,0,1.0]]
}
+ },
+
+ "BubbleColor1":
+ {
+ "color": [ 0.8255, 0.2412, 0.1353, 0.32 ]
+ },
+
+ "BubbleColor2":
+ {
+ "color": [ 0.8647, 0.4569, 0.3157, 0.32 ]
+ },
+
+ "BubbleColor3":
+ {
+ "color": [ 0.9804, 0.5412, 0.5510, 0.32 ]
+ },
+
+ "BubbleColor4":
+ {
+ "color": [ 1, 0, 0, 0.13 ]
}
+
}
}
"units": "USER_SPACE",
"stopColor": [[0.392157,0.254902,0.647059,1.0],[0.164706,0.0313725,0.270588,1.0]]
}
+ },
+
+ "BubbleColor1":
+ {
+ "color": [ 0.8255, 0.2412, 0.9353, 0.32 ]
+ },
+
+ "BubbleColor2":
+ {
+ "color": [ 0.8647, 0.4569, 0.8157, 0.32 ]
+ },
+
+ "BubbleColor3":
+ {
+ "color": [ 0.9804, 0.5412, 0.9510, 0.32 ]
+ },
+
+ "BubbleColor4":
+ {
+ "color": [ 1, 1, 1, 0.13 ]
}
+
}
}
"units": "USER_SPACE",
"stopColor": [[0.392157,0.254902,0.647059,1.0],[0.164706,0.0313725,0.270588,1.0]]
}
+ },
+
+ "BubbleColor1":
+ {
+ "color": [ 0.8255, 0.2412, 0.9353, 0.32 ]
+ },
+
+ "BubbleColor2":
+ {
+ "color": [ 0.8647, 0.4569, 0.8157, 0.32 ]
+ },
+
+ "BubbleColor3":
+ {
+ "color": [ 0.9804, 0.5412, 0.9510, 0.32 ]
+ },
+
+ "BubbleColor4":
+ {
+ "color": [ 1, 1, 1, 0.13 ]
}
+
}
}
const float EFFECT_FLICK_DURATION = 0.5f; ///< Scroll Flick Duration for Effects
const Vector3 ANGLE_CUBE_PAGE_ROTATE(Math::PI * 0.5f, Math::PI * 0.5f, 0.0f);
-
-const Vector4 BUBBLE_COLOR[] =
+const char * const BUBBLE_COLOR_STYLE_NAME[] =
{
- Vector4( 0.3255f, 0.3412f, 0.6353f, 0.32f ),
- Vector4( 0.3647f, 0.7569f, 0.8157f, 0.32f ),
- Vector4( 0.3804f, 0.7412f, 0.6510f, 0.32f ),
- Vector4( 1.f, 1.f, 1.f, 0.13f )
+ "BubbleColor1",
+ "BubbleColor2",
+ "BubbleColor3",
+ "BubbleColor4"
};
-const int NUMBER_OF_BUBBLE_COLOR( sizeof(BUBBLE_COLOR) / sizeof(BUBBLE_COLOR[0]) );
+const int NUMBER_OF_BUBBLE_COLORS( sizeof( BUBBLE_COLOR_STYLE_NAME ) / sizeof( BUBBLE_COLOR_STYLE_NAME[ 0 ] ) );
const char * const SHAPE_IMAGE_TABLE[] =
{
imageMap.Add( Toolkit::Visual::Property::SHADER, effect );
dfActor.SetProperty( Toolkit::ImageView::Property::IMAGE, imageMap );
- dfActor.SetColor( BUBBLE_COLOR[ i%NUMBER_OF_BUBBLE_COLOR ] );
+ dfActor.SetStyleName( BUBBLE_COLOR_STYLE_NAME[ i%NUMBER_OF_BUBBLE_COLORS ] );
layer.Add( dfActor );
}