processing / processing/processing-website

beginShape() documentation lack LINE_STRIP shape mode

未关闭 适合新手
#371 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
MDX
星标
90
派生
122
平均合并
1 小时 43 分钟
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从受影响的 beginShape() 参考页面 https://processing.org/reference/beginShape_.html 开始,检查其中的第四个示例和形状模式列表。更新该示例以使用 LINE_STRIP,并在列表中提及该模式,然后验证渲染后的文档和包含两个顶点的示例。

由索引模型根据 Issue 内容生成。

评估

领域
documentation
Issue 类型
文档
难度
1/5
预计耗时
1 小时以内
活跃度
停滞
描述清晰度
描述清楚
新手友好度
72/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。