processing / processing/libprocessing
NameError: name 'frame_rate' is not defined
オープン
まだ誰も着手していません。
- 主要言語
- Rust
- スター
- 69
- フォーク
- 14
- 平均マージ
- 15日 22時間
- マージ済み PR(30日)
- 3
説明
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()
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
エントリーポイントは、掲載された Python 例にある setup()、draw()、run() です。まず NameError を再現し、frame_rate に対する Rust Processing API のエクスポートされた命名を調べます。原因が例と API のどちらにあるかを確認し、その後、未定義名エラーなしで例が開始して実行されることを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, rust
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 55/100