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

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -