Created
May 18, 2012 02:35
-
-
Save forforf/2722827 to your computer and use it in GitHub Desktop.
Changes to default game to test alpha
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Added alpha to the red circle in circle template | |
re.e('circle align update') | |
.attr({ | |
alpha: 0.3, | |
radius:10, | |
speed:15, | |
color:'#ff0000' | |
}) | |
//Diff of my changes to home.js to the default home.js | |
//Note that I created a large blue circle behind the red circle to test for alpha | |
6,13d5 | |
< //create bigger circle to check alpha effect | |
< re.e('circle align') | |
< .attr({ | |
< radius: 50, | |
< color: '#0000ff' | |
< }) | |
< .alignHor() | |
< .alignVer(); | |
15c7 | |
< //create new circle on canvas with some transparency | |
--- | |
> //create new circle on canvas | |
18d9 | |
< alpha: 0.3, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment