Skip to content

Stroke is shaking when rotates #1481

@vladbotlevskyi

Description

@vladbotlevskyi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions