# CanvasContext.restore()
with Promise style call: Not supported
Mini Program plugin: Support
Restores a previously saved drawing context.
# sample code
const ctx = wx.createCanvasContext('myCanvas')
// save the default fill style
ctx.save()
ctx.setFillStyle('red')
ctx.fillRect(10, 10, 150, 100)
// restore to the previous saved state
ctx.restore()
ctx.fillRect(50, 50, 150, 100)
ctx.draw()