processing / processing/processing4
code symmetry typo or bug in public void setTint(int fill) calls setFill(i,fill) in PShape.java ?
オープン
まだ誰も着手していません。
bug
core
- 主要言語
- Java
- スター
- 494
- フォーク
- 183
- 平均マージ
- 4時間 39分
- マージ済み PR(30日)
- 3
説明
Created by: cubr3
Hi,
- sorry if it's not a bug but setFill and setTint in PShape.java seems to code the same behavior for two different attributes but... setTint(int fill) :
public void setTint(int fill) {
if (openShape) {
PGraphics.showWarning(INSIDE_BEGIN_END_ERROR, "setTint()");
return;
}
tintColor = fill;
if (vertices != null) {
for (int i = 0; i < vertices.length; i++) {
setFill(i, fill); <--------------------------- here: shouldn't be setTint(i,fill) ?
}
}
}
- a warning message typo in public void setFill(int index, int fill) :
line 2631: PGraphics.showWarning(NO_SUCH_VERTEX_ERROR + " (" + index + ")", "getFill()");
"getFill()" rather than "setFill()" in warning message ?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
PShape.java を開き、setFill(int index, int fill) と併せて setTint(int fill) を確認します。tint が tint 属性を更新し、欠落している頂点に関する警告が setFill() を特定していることを確認してください。完了とは、報告された 2 つの不整合が両方とも修正されていることを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java
- 領域
- api
- issue の種類
- バグ
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 活発さ
- 停滞
- 明瞭さ
- 明確に書かれている
- 初心者へのやさしさ
- 50/100