mirror of https://github.com/kivy/kivy.git
textcanvas: remove uneeded transform_mat
This commit is contained in:
parent
1ebc890042
commit
3b7560b290
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue