Hello I am a beginner at python and this is my first time on this forum. I have a question for a program I was writing from the raspberry pi projects area. Specifically the rocket launch project. [url]https://projects.raspberrypi.org/en/pro ... unch/1/url]
I have been writhing the program on MU and I completed the project up to the end of the "set the scene page". I ran the program like the project said and am getting this error: ERROR: Invoking <bound method Sketch.on_resize of <Sketch (Glfw) at 0xe20f3df0>> for ResizeEvent
I am not sure if I am doing something wrong.
I would be grateful for any help I can receive. Thanks in advance
Here is my code:
#!/bin/python3
# Import library code
from p5 import *
from random import randint
# Setup global variables
screen_size = 400
# The draw_rocket function goes here
# The draw_background function goes here
def draw_background():
background(0)
image(planet,width/2, height,300,300)
def setup():
# Setup your animation here
size(screen_size, screen_size)
image_mode(CENTER)
global planet
planet = load_image('earth.png')
def draw():
# Things to do in every frame
draw_background()
run()
I have been writhing the program on MU and I completed the project up to the end of the "set the scene page". I ran the program like the project said and am getting this error: ERROR: Invoking <bound method Sketch.on_resize of <Sketch (Glfw) at 0xe20f3df0>> for ResizeEvent
I am not sure if I am doing something wrong.
I would be grateful for any help I can receive. Thanks in advance
Here is my code:
#!/bin/python3
# Import library code
from p5 import *
from random import randint
# Setup global variables
screen_size = 400
# The draw_rocket function goes here
# The draw_background function goes here
def draw_background():
background(0)
image(planet,width/2, height,300,300)
def setup():
# Setup your animation here
size(screen_size, screen_size)
image_mode(CENTER)
global planet
planet = load_image('earth.png')
def draw():
# Things to do in every frame
draw_background()
run()
Statistics: Posted by FalconRanger — Fri Jan 26, 2024 4:31 pm