Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- context.fillStyle="yellow";
- context.fillRect(0,0,100,100);
- context.fillStyle="blue";
- context.fillRect(50,50,100,100);
- Y = Yellow, B = Blue
- Y Y Y Y
- Y Y Y Y
- Y Y B B B B
- Y Y B B B B
- B B B B
- B B B B
- context.globalAlpha=0.5;
- context.fillStyle="yellow";
- context.fillRect(0,0,100,100);
- context.fillStyle="blue";
- context.fillRect(50,50,100,100);
- Y = Yellow, B = Blue, M = Mix of both
- Y Y Y Y
- Y Y Y Y
- Y Y M M B B
- Y Y M M B B
- B B B B
- B B B B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement