Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Since v4.4.3 - XYscope has odd sizing bug and small examples alphabetical order issue

未關閉
#1,225 1 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
32/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java

研究方向

先在 Processing 4.4.2 和 4.4.3 上重現 XYscope calibration、basic_drawing 和 clock 範例,然後檢查所連結提交範圍中的 Core/Environment/Rendering 變更。確認尺寸回歸和 Contributed Libraries 排序回歸是否由不同原因造成。範例保留其預期尺寸,且函式庫清單一致地按字母順序排列,即視為完成。

由索引模型根據 Issue 內容生成。

描述

bug
Most appropriate sub-area of Processing 4?

Core/Environment/Rendering

Processing version

4.4.3

Operating system

MacOS 13.6.5

Bug description

An issue was brought up on the XYscope repo about the size of shapes changing and going off screen.. did some version checking and discovered a bug was introduced in v4.4.3 of Processing. Prior to 4.4.2, my examples for 1_getting_started > calibration (or basic_drawing or clock) all worked fine, keeping the graphics within the 512x512 window. Since 4.4.3, the shapes seem to be 4x bigger... the sizing magnitude change is especially noticeable with the basic_drawing example where the mouseX/Y no longer match.. Odd that about half the sketches aren't affected.. so I'm guessing it's semi related to pushMatrix()/popMatrix() or translate()... really not sure.. Tried looking into the changelog, but perhaps someone working close on the project has an idea from the commit log what it might have been? The issue has lingered up until the latest 4.4.6 release.

v4.4.2, calibration example
Image

v4.4.3, calibration example (scale issue)
Image

On a small side note, another small issue that was introduced in 4.4.2, was the alphabetical order listing of the Contributed Libraries within the examples window. Previously XYscope was usually at the very bottom of this list, but now it looks like some other bits from the folder aren't being filtered? - aha, it's placing all lowercase libs at the bottom after any Titlecase ones...

v4.4.1, examples window
Image

v4.4.2, examples window (alphabetical issue)
Image

Steps to reproduce this
  1. Install XYscope library

  2. compare example calibration using v4.4.2 (or lower) and v4.4.3

snippet

/*
 calibration
 circle + square + lines to help center/adjust oscilloscpe display
 cc teddavis.org 2023
 */

import ddf.minim.*; // minim req to gen audio
import xyscope.*;   // import XYscope
XYscope xy;         // create XYscope instance

void setup() {
  size(512, 512);

  xy = new XYscope(this); // define XYscope instance
  //xy.getMixerInfo(); // lists all audio devices
}

void draw() {
  background(0);
  xy.clearWaves(); // clear waves similar to background

  pushMatrix();
  translate(width/2, height/2);
  pushMatrix();
  rotate(radians(180));
  xy.circle(0, 0, width);
  popMatrix();
  xy.rectMode(CENTER);
  xy.rect(0, 0, width);
  xy.line(-width/2, 0, width/2, 0);
  xy.line(0, height/2, 0, -height/2);
  popMatrix();

  xy.buildWaves(); // build audio from shapes
  xy.drawAll(); // draw all analytics
}
Additional context

No response

Would you like to work on the issue?

No, I’m just reporting the issue

主要語言
Java
星號
497
分支
183
平均合併
4 小時 39 分鐘
30 天內合併 PR
3

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

processing/processing4 的其他 Issue

查看 processing/processing4 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。