Skip to content

Instantly share code, notes, and snippets.

@forforf
Created May 18, 2012 02:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save forforf/2722827 to your computer and use it in GitHub Desktop.
Save forforf/2722827 to your computer and use it in GitHub Desktop.
Changes to default game to test alpha
//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