processing / processing/processing4

Stroke is shaking when rotates

オープン
#1,481 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

bug
主要言語
Java
スター
494
フォーク
183
平均マージ
4時間 39分
マージ済み PR(30日)
3

説明

Most appropriate sub-area of Processing 4?

Other (specify if possible)

Processing version

4.5.2

Operating system

windows

Bug description

Stroke is shaking when rotates. Only stroke does that, not the filled shape itself.

void draw(){
noFill();
stroke(0, 150, 255); // Blue color
strokeWeight(4);
rotate(radians(angle));
arc(0, 0, 150, 150, 0, PI + HALF_PI);
}

Steps to reproduce this
  1. set frameRate to 60

  2. run code:

void draw(){
noFill();
stroke(0, 150, 255); // Blue color
strokeWeight(4);
rotate(radians(angle));
arc(x, y, 150, 150, 0, PI + HALF_PI);
}

OR

void draw(){
noFill();
stroke(0, 150, 255); // Blue color
strokeWeight(4);
//rotate(radians(angle));
arc(x, y, 150, 150, radians(angle), PI + HALF_PI + radians(angle));
}

  1. observe shaking of the rotating arc
snippet


float angle = 0;

void setup() {
  size(400, 200);
  frameRate(60);
}

void draw() {
  background(30); 
  
  pushMatrix();
  translate(width/2, height/2); 
  
  noFill();
  stroke(0, 150, 255); 
  strokeWeight(4);
  rotate(radians(angle));
  arc(0, 0, 150, 150, 0, PI + HALF_PI);
  
  popMatrix();
  
  angle += 5;
}
Additional context

No response

Would you like to work on the issue?

No, I’m just reporting the issue

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

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

はじめの一歩

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

調査の方向性

まず、Windows 上の Processing 4.5.2 で frameRate 60 に設定し、提供された setup() と draw() のスニペットを実行してから、rotate() ありの場合となしの場合で回転する円弧を比較します。塗りつぶされた図形が安定したまま、ストロークが揺れる状態を再現してください。提供された例で、回転する円弧が目に見えるストロークの揺れなしに描画されれば完了です。

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

評価

技術スタック
java
領域
computer-graphics
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
35/100

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

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