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
Post a Comment