NameError: name 'frame_rate' is not defined
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 55/100
Direzione di ricerca
I punti di ingresso sono setup(), draw() e run() nell’esempio Python pubblicato; per prima cosa riproduci il NameError e ispeziona la denominazione esportata della Rust Processing API per frame_rate. Conferma se la responsabilità è dell’esempio o dell’API, quindi verifica che l’esempio si avvii e venga eseguito senza l’errore di nome non definito.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Found while porting Basics / Structure / SetupDraw (see https://github.com/processing/processing-examples-mewnala/issues/110)
Code
"""
Setup and Draw.
The code inside the draw() function runs continuously
from top to bottom until the program is stopped.
"""
from mewnala import *
y = 100
def setup():
"""
The statements in the setup() function
execute once when the program begins
"""
size(640, 360) # Size must be the first statement
stroke(255) # Set line drawing color to white
frame_rate(30)
def draw():
"""
The statements in draw() are executed until the
program is stopped. Each statement is executed in
sequence and after the last line is read, the first
line is executed again.
"""
global y
background(0) # Set the background to black
y = y - 1
if y < 0:
y = height
line(0, y, width, y)
run()
- Lingua principale
- Rust
- Stelle
- 69
- Fork
- 14
- Merge medio
- 15g 22h
- PR unite (30g)
- 3
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di processing/libprocessing
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
processing/libprocessing#233 ·
-
Dropping Python 3.10 support Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
processing/libprocessing#229 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
processing/libprocessing#201 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
processing/libprocessing#194 ·
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
processing/libprocessing#146 · 1 commento ·
Tutte le issue di processing/libprocessing
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#616 ·
-
bug rules
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
app bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
IronCoreLabs/ironcore-alloy#346 ·
-
good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100