processing / processing/libprocessing
`width` & `height` are not accessible as globals across imported Python modules in the same directory
オープン
まだ誰も着手していません。
A-Mewnala
- 主要言語
- Rust
- スター
- 69
- フォーク
- 14
- 平均マージ
- 15日 22時間
- マージ済み PR(30日)
- 3
説明
Unlike in Processing tabs that exist in the same folder, different Python modules in the same directory does not share width and height information. width and height have to be imported to the Class constructor for now as a workaround.
Example:
noc-2-mewnala-port > chapter2 > Example_2_6_Attraction
widthandheightare declared inExample_2_6_Attraction.pysetupAttractor.pyandMover.pyare also trying to accesswidthandheight
Note that there is no error anyway if we try to run the sketch without providingwidthandheightto the Classes, but it isn't exposed to modules outside the one that hassize(width, height)in thesetup
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
noc-2-mewnala-port/chapter2/Example_2_6_Attraction の動作を再現してください。ここでは setup が width と height を定義し、Attractor.py と Mover.py がそれらにアクセスします。まず、同じディレクトリ内のモジュールがどのように Processing の状態を受け取るかを追跡してください。完了条件は、それらのモジュールが width と height をクラスコンストラクターに渡さずにアクセスできることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python, rust
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 50/100