get_context method

get_context

Returns a drawing context on the canvas, or null if the context ID is not supported. A drawing context lets you draw on the canvas.

Returns

A RenderingContext

def get_context(self, context_id):
    ...
ParameterTypeDescription
context_idstrIs a string containing the context identifier defining the drawing context associated to the canvas

See Also