Skip to content

Regression: smooth(4) shows “smooth() can only be used inside settings()” error #149

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

Closed
processing-bot opened this issue Oct 16, 2020 · 5 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: benfry

Looks like smooth() not properly being hoisted out of setup() in 4.x, inside the PDE this results in “smooth() can only be used inside settings()” in the console.

void setup(){ 
  size(300,300, P2D);
  smooth(4);
}

void draw(){
  background(0);
  fill(255,0,0);
  ellipse(100,100,100,100);
  fill(0,255,0);
  ellipse(150,150,100,100);
}
@processing-bot
Copy link
Collaborator Author

Created by: sampottinger

Weird... this was resolved at one point but I’ll take a look.

Sent from my iPhone

On Oct 16, 2020, at 11:45 AM, Ben Fry [email protected] wrote:


Assigned #149 to @sampottinger.


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Any luck?

@processing-bot
Copy link
Collaborator Author

Created by: sampottinger

Hey there!

Sorry this got a little buried. If I can’t get to this over the weekend, I’ll try over the holiday next week.

Thanks,
Sam

Sent from my iPhone

On Nov 20, 2020, at 5:39 PM, Ben Fry [email protected] wrote:


Any luck?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.

@processing-bot
Copy link
Collaborator Author

Created by: sampottinger

I have a PR for you @benfry at #152. Apologies for the delay!

Screen Shot 2020-11-21 at 11 59 19 AM

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Resolved for 4.0a3 with code from @sampottinger.

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