Skip to content

Commit a63b4b4

Browse files
committed
add test for new modules
1 parent 3111041 commit a63b4b4

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Axiom: InterpolateTextureBaseColors(5,6,0.0) ,(20) @b(1)
2+
3+
nbsteps = 10
4+
5+
dt = 1./nbsteps
6+
7+
derivation length: nbsteps
8+
production:
9+
10+
InterpolateTextureBaseColors(a,b,t) --> InterpolateTextureBaseColors(a,b,t+dt)
11+
interpretation:
12+
13+
14+
endlsystem
15+
###### INITIALISATION ######
16+
17+
__lpy_code_version__ = 1.1
18+
19+
def __initialiseContext__(context):
20+
import openalea.plantgl.all as pgl
21+
PGL_140591750434928 = pgl.ImageTexture("PGL_140591750434928" , "/Users/fboudon/Develop/vplants/branches/mangosim/share/textures/leaf.png" , )
22+
PGL_140591750434928.name = "PGL_140591750434928"
23+
Color_20 = pgl.Texture2D(image = PGL_140591750434928 , )
24+
Color_20.name = "Color_20"
25+
context.turtle.setMaterial(20,Color_20)

test/ui/test_rollToHorizontal.lpy

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Axiom: &(130) /(60) @h Frame
2+
3+
derivation length: 1
4+
production:
5+
6+
7+
interpretation:
8+
9+
10+
endlsystem

0 commit comments

Comments
 (0)