-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
shapeMode() new feature #3509
Comments
Really cool feature 👍 Would like to work on this. Although I am not free this weekend, would implement the feature on Monday. |
Hello, What I found out was there is no |
I was asking about shapeMode() in relation to beginShape() used in making custom shapes. |
Hi @sanketsingh24 I believe the requested feature is an equivalent to rectMode for custom shapes made with |
I think your over complexing it. Yes, it would be an equivalent of rectMode. It would not be an SVG related thing as far as I can tell. It would be an attribute of beginShare(). I don't see an easy way to do it as a p5 custom shape doesn't built/record it's width or height as it's being constructed. So a sketch like this means the user has to do extra coding to build that data themselfs. Is there a way that |
I agree this is separate from SVG support, but the requested feature would suggest a p5.Shape class that stores and updates info about the bounds and mode so that it can shift drawing accordingly. |
Ok, so it should be only for custom shapes made by |
@stalgiag i would like to work on this issue |
Hi @devashish1099 I am not sure if we have a consensus on this feature yet. I will add the discussion label to attract opinions on whether the community is in favor of adding a p5.Shape class. |
Processing has a shapeMode() function that lets you set the draw position to be
CENTER, CORNER or CORNERS
This is missing from P5 and means that extra work is needed when defining a shape.Most appropriate sub-area of p5.js?
New feature details:
shapeMode() function
that lets you set the draw position to be.
shapeMode(CENTER) shapeMode(CORNER) shapeMode(CORNERS)
The text was updated successfully, but these errors were encountered: