processing / processing/processing4
Stroke is shaking when rotates
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Java
- Estrellas
- 494
- Forks
- 183
- Merge medio
- 4 h 39 min
- PR fusionados (30 d)
- 3
Descripción
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
-
set frameRate to 60
-
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));
}
- 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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza ejecutando los fragmentos setup() y draw() proporcionados en Processing 4.5.2 en Windows con frameRate 60, y luego compara el arco giratorio con y sin rotate(). Reproduce el temblor del trazo mientras la forma rellena permanece estable. Se considera terminado cuando el arco giratorio se renderiza sin temblor visible del trazo en los ejemplos proporcionados.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java
- Área
- computer-graphics
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 35/100