N/A
Hi! I noticed on the documentation for push() that it lists a few functions that change the style/transformation of a p5 application:
push() stores information related to the current transformation state and style settings controlled by the following functions: fill(), stroke(), tint(), strokeWeight(), strokeCap(), strokeJoin(), imageMode(), rectMode(), ellipseMode(), colorMode(), textAlign(), textFont(), textSize(), textLeading().
However, it seems like this is missing a bunch of functions. Ones that come to mind are translate(), rotate(), and scale(), and there are probably other ones that aren't coming to mind at the moment. Maybe these functions should be added to that list?
Looking through the p5.js reference, other functions that are missing:
noFill()noStroke()smooth()/noSmooth()bezierDetail() and curveDetail()applyMatrix(), resetMatrix(), rotate(), rotateX(), rotateY(), rotateZ(), scale(), shearX(), shearY(),translate()noTint()noiseDetail() and noiseSeed() (...are these affected by push()/pop()?)randomSeed() (...again, is this affected? i don't even know)angleMode()I don't feel confident that this is everything (this doesn't include any webgl mode stuff), but I figured it would be useful to at least try to compile a complete list.
thanks @catarak this is super helpful, will add!
I think most of the work @sanketsingh24 and I did this summer for GSOC is also missing from the push() docs. Off the top of my head that would be:
emissiveMaterial()specularColor()frustum()spotLight()falloff()Hi guys, I am a beginner can i work on this issue ?
@imrishabh18 yes feel free! i'd recommend just doing docs for one or two functions in your first PR. thank you!
@outofambit I have updated the documentation of couple of functions from the structure.js file but when running in the local development setup.The updated text is not showing up,
@imrishabh18 Do you mean the local preview of the documentation in p5.js repo? If so can you file the PR anyway and I'll check if that is working as inteded. Thanks.
Currently working on it (WIP)
noFill()noStroke()translate()rotate()scale()smooth()/noSmooth(): can't manage to preview the difference properly to ensure push/pop worksapplyMatrix()resetMatrix()shearX()shearY()noTint()noiseDetail(): can't manage to get it working with push() and pop()noiseSeed()randomSeed(): can't manage to get it working with push() and pop()emissiveMaterial()specularColor()frustum()spotLight()falloff()Pretty sure this are WEBGL:
bezierDetail(): can't manage to get it working with push() and pop()curveDetail(): can't manage to get it working with push() and pop()rotateX()rotateY()rotateZ()This issue has been merged. you can close it right ?
@Prasad-Chaudhari yes thank you!
Most helpful comment
Looking through the p5.js reference, other functions that are missing:
noFill()noStroke()smooth()/noSmooth()bezierDetail()andcurveDetail()applyMatrix(),resetMatrix(),rotate(),rotateX(),rotateY(),rotateZ(),scale(),shearX(),shearY(),translate()noTint()noiseDetail()andnoiseSeed()(...are these affected by push()/pop()?)randomSeed()(...again, is this affected? i don't even know)angleMode()I don't feel confident that this is everything (this doesn't include any webgl mode stuff), but I figured it would be useful to at least try to compile a complete list.