Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak mode issue with hex codes including transparency. #720

Closed
sampottinger opened this issue May 16, 2023 · 0 comments · Fixed by #721
Closed

Tweak mode issue with hex codes including transparency. #720

sampottinger opened this issue May 16, 2023 · 0 comments · Fixed by #721

Comments

@sampottinger
Copy link
Collaborator

sampottinger commented May 16, 2023

Description

Love tweaks mode. Forgot how much I love it.

Anyway, I'm getting Syntax Error like Incomplete statement or extra code near ‘extraneous input 'A0' expecting ')'’? if there is a color with a transparent component included when running in tweaks mode.

Expected Behavior

Expected it to draw per usual. The same sketch will work correctly if run normally.

Current Behavior

The following will run normally but not in tweaks mode:

void setup() {
  size(250, 250);
}

void draw() {
  background(#FFFFFF);
  noStroke();
  fill(#C0A0A0A0);
  ellipse(50, 125, 200, 200);
  ellipse(200, 125, 200, 200);
}

Steps to Reproduce

  1. Include a color with a transparent component like #C0A0A0A0
  2. Run in tweaks mode.

Your Environment

This reproduces across operating systems.

Possible Causes / Solutions

I think it might be at https://github.com/processing/processing4/blob/main/java/src/processing/mode/java/tweak/SketchParser.java#L273.

sampottinger added a commit that referenced this issue May 16, 2023
Fix an issue where tweaks mode wont run if there are semi-transparent
colors in the tab because of a regex issue.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant