1.

The ____________ method must fill all the subpaths of the current path, using fillStyle, and using the non-zero winding number rule.(a) fill()(b) stroke()(c) clip()(d) get()This question was posed to me during an online exam.The query is from Client-Side Graphics with Canvas topic in portion HTML Markup, Forms, Video, Audio & Other Multimedia of HTML

Answer»

Right ANSWER is (a) fill()

To explain I would say: The path one defines is drawn by stroke() method. Any region/shape or size in canvas is clipped by clip(). The fill() method fills the CURRENT drawing (path). The DEFAULT COLOR is BLACK. There is no method like get().



Discussion

No Comment Found

Related InterviewSolutions