Examveda
Examveda

Which method must clear the pixels in the specified rectangle that also intersects the current clipping region to a fully transparent black, erasing any previous image?

A. strokeRect(x, y, w, h)

B. clearRect(x, y, w, h)

C. fillRect(x, y, w, h)

D. none of the mentioned

Answer: Option B

Solution(By Examveda Team)

The clearRect() method clears the specified pixels within a given rectangle.

This Question Belongs to HTML >> HTML5

Join The Discussion

Related Questions on HTML5