Skip to content

Commit

Permalink
fix light_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
einarf committed Jun 30, 2024
1 parent 5d2a08c commit ff37cba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions arcade/experimental/light_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import math
import arcade
from arcade.draw import draw_lbwh_rectangle_textured
from arcade.experimental.lights import Light, LightLayer

# Do the math to figure out our screen dimensions
Expand Down Expand Up @@ -75,7 +74,9 @@ def on_draw(self):

# Everything that should be affected by lights in here
with self.light_layer:
draw_lbwh_rectangle_textured(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, self.background)
arcade.draw_texture_rect(
self.background, arcade.LBWH(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)
)
self.torch_list.draw()

# Draw the contents with lighting
Expand Down

0 comments on commit ff37cba

Please sign in to comment.