파이썬[Python]: kivy, OpenGL ES - 사각형 그리기
kivy.graphics 모듈 - OpenGL ES /// 설명 사각형을 그립니다. 참고: OpenGL ES 모듈 목록 reference https://www.youtube.com/playlist?list=PL1P11yPQAo7qEnF_EysHOBUfF0AzUz3jh /// 예제 main.py 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 import kivy kivy.require( '2.0.0' ) from kivy.app import App from kivy.core.window import Window from kivy.resources import resource_find from kivy.graphics import * from kivy.uix.widget import Widget Window.clearcolor = ( 1 , 1 , 1 , 1 ) Window.size = ( 563 , 1001 ) Window.top, Window.left = 30 , 2900 # positions colors vertices = [ - 0. 5 , - 0. 5 ,...