javascript - Display canvas shape always on top of another shape -


i have 2 moving rectangles in canvas, 1 green , 1 red. when on same position , can see 1 of them, red rectangle displayed while green 1 under red one.

how can accomplish green 1 displayed on top?

without code hard tell, if have code green rectangle first drawn first , red drawn on top of it.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -