processing / processing/processing-website

beginShape() documentation lack LINE_STRIP shape mode

オープン 初心者向け
#371 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
MDX
スター
90
フォーク
122
平均マージ
1時間 43分
マージ済み PR(30日)
3

説明

Issue description

Examples shown encourage users who wants to draw multiple consecutive line segments to use "With no mode specified, the shape can be any irregular polygon".

But the default POLYGON mode doesn't work if user supply only 2 vertices...

The example code is working with four vertices, but doesn't work anymore if you comment two of them !

URL(s) of affected page(s)

https://processing.org/reference/beginShape_.html

Proposed fix

The fourth example should use beginShape(LINE_STRIP) and LINE_STRIP should be mentionned in mode's list.

noFill();
beginShape(LINE_STRIP);
vertex(30, 20);
vertex(85, 20);
endShape();

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

https://processing.org/reference/beginShape_.html の対象となる beginShape() リファレンスページから始め、4番目の例とシェイプモードの一覧を確認します。例を LINE_STRIP を使用するように更新し、そのモードを一覧に追加してから、レンダリングされたドキュメントと2頂点の例を検証します。

索引モデルが issue の本文から書いたものです。

評価

領域
documentation
issue の種類
ドキュメント
難易度
1/5
見積もり時間
1時間未満
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
72/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。