diff --git a/examples/testcanvas.py b/examples/testcanvas.py index 16e2d0211..9daf37f92 100644 --- a/examples/testcanvas.py +++ b/examples/testcanvas.py @@ -2,15 +2,13 @@ import kivy from kivy.base import runTouchApp from kivy.core.window import Window from kivy.core.image import Image -from kivy.graphics import Canvas, Rectangle, BorderRectangle -from kivy.lib.transformations import clip_matrix +from kivy.graphics import Canvas, Rectangle, BorderRectangle, GraphicContext img = Image('examples/test.png') c = Canvas() with c: c.context.set('color', (1,1,1,1)) - c.context.set('projection_mat', clip_matrix(0,Window.width,0,Window.height,-1,1)) BorderRectangle(size=(100, 100), texture=img.texture)