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
processing-bot opened this issue May 16, 2023 · 0 comments
Closed

Tweak mode issue with hex codes including transparency. #720

processing-bot opened this issue May 16, 2023 · 0 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: sampottinger

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 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

No branches or pull requests

1 participant