[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz-commits] gzz/gfx/demo hierarch.py
From: |
Tuomas J. Lukka |
Subject: |
[Gzz-commits] gzz/gfx/demo hierarch.py |
Date: |
Thu, 26 Sep 2002 07:39:11 -0400 |
CVSROOT: /cvsroot/gzz
Module name: gzz
Changes by: Tuomas J. Lukka <address@hidden> 02/09/26 07:39:10
Modified files:
gfx/demo : hierarch.py
Log message:
Two rotations hierarchically
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/gzz/gzz/gfx/demo/hierarch.py.diff?tr1=1.3&tr2=1.4&r1=text&r2=text
Patches:
Index: gzz/gfx/demo/hierarch.py
diff -c gzz/gfx/demo/hierarch.py:1.3 gzz/gfx/demo/hierarch.py:1.4
*** gzz/gfx/demo/hierarch.py:1.3 Thu Sep 26 07:27:58 2002
--- gzz/gfx/demo/hierarch.py Thu Sep 26 07:39:10 2002
***************
*** 1,7 ****
class HierarchScene:
def __init__(self):
! self.angles = [0, 60, 180, 270]
def key(self, key):
if key == 'a':
rotatelist(self.angles)
--- 1,7 ----
class HierarchScene:
def __init__(self):
! self.angles = [0, 10, 30, 60]
def key(self, key):
if key == 'a':
rotatelist(self.angles)
***************
*** 14,35 ****
cs0 = vs.coords.coordsys(0, 10, 400, 400, 100, 100)
cs1 = vs.coords.rotateXY(cs0, angle)
cs2 = vs.coords.coordsys(cs1, 10, 0, 0, 4, 4)
!
! cs02 = vs.coords.coordsys(cs0, 0, 0, 0, 8, 8)
vs.matcher.add(cs0, "0")
vs.matcher.add(cs1, "1")
vs.matcher.add(cs2, "2")
! vs.matcher.add(cs02, "02")
! # vs.matcher.addSub(cs0, cs1, "1")
! # vs.matcher.addSub(cs1, cs2, "2")
! # vs.matcher.addSub(cs0, cs02, "3")
vs.map.put(coloredQuad((0.1,0.1,0.1)), cs0)
vs.map.put(coloredQuad((1,0.1,0.1)), cs1)
vs.map.put(coloredQuad((1,1,0.1)), cs2)
- vs.map.put(coloredQuad((1,1,0.6)), cs02 )
--- 14,33 ----
cs0 = vs.coords.coordsys(0, 10, 400, 400, 100, 100)
cs1 = vs.coords.rotateXY(cs0, angle)
cs2 = vs.coords.coordsys(cs1, 10, 0, 0, 4, 4)
! cs3 = vs.coords.coordsys(cs2, -15, -1, -1, 2, 2)
! cs4 = vs.coords.rotateXY(cs3, angle)
vs.matcher.add(cs0, "0")
vs.matcher.add(cs1, "1")
vs.matcher.add(cs2, "2")
! vs.matcher.add(cs3, "3")
! vs.matcher.add(cs4, "4")
vs.map.put(coloredQuad((0.1,0.1,0.1)), cs0)
vs.map.put(coloredQuad((1,0.1,0.1)), cs1)
vs.map.put(coloredQuad((1,1,0.1)), cs2)
+ vs.map.put(coloredQuad((0,1,0.1)), cs4)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz-commits] gzz/gfx/demo hierarch.py,
Tuomas J. Lukka <=