Skip to content

Commit f488a64

Browse files
committed
fix some mewnala examples
1 parent 9e7b4c5 commit f488a64

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

crates/processing_pyo3/examples/background_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
def setup():
44
global i
55
size(800, 600)
6-
i = image("images/logo.png")
6+
i = load_image("images/logo.png")
77

88

99
def draw():

crates/processing_pyo3/examples/lights.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ def setup():
1919
point_light_b.look_at(0.0, 0.0, 0.0)
2020

2121
# Spot Light
22-
spot_light = spot_light((0.25, 0.8, 0.19), 15.0 * 1000000.0, 200.0, 0.84, 0.0, 0.7854)
23-
spot_light.position(40.0, 0.0, 70.0)
24-
spot_light.look_at(0.0, 0.0, 0.0)
22+
spot_light_a = spot_light((0.25, 0.8, 0.19), 15.0 * 1000000.0, 200.0, 0.84, 0.0, 0.7854)
23+
spot_light_a.position(40.0, 0.0, 70.0)
24+
spot_light_a.look_at(0.0, 0.0, 0.0)
2525

2626
def draw():
2727
global angle

crates/processing_pyo3/examples/materials.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ def setup():
88
mode_3d()
99

1010
dir_light = directional_light((1.0, 0.98, 0.95), 1500.0)
11-
point_light = point_light((1.0, 1.0, 1.0), 100000.0, 800.0, 0.0)
12-
point_light.position(200.0, 200.0, 400.0)
11+
p_light = point_light((1.0, 1.0, 1.0), 100000.0, 800.0, 0.0)
12+
p_light.position(200.0, 200.0, 400.0)
1313

1414
mat = Material()
1515
mat.set(roughness=0.3)

0 commit comments

Comments
 (0)