-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Overhaul custom shapes for p5.js 2.0 #7373
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
Merged
Merged
Changes from 78 commits
Commits
Show all changes
114 commits
Select commit
Hold shift + click to select a range
62567a9
commit message
GregStanton 2107ecb
Add custom_shapes.js to eventually replace vertex.js
GregStanton e38b3b9
Set up files for custom shape refactor
GregStanton cff8461
Merge branch 'dev-2.0' of https://github.com/processing/p5.js into de…
GregStanton b778784
Add inline documentation for Shape class
GregStanton 19e8c48
Fix documentation of default parameter for Shape constructor
GregStanton 8eb74e6
Update inline documentation for p5.Shape
GregStanton f0fc908
Document p5.Vertex
GregStanton 1a05d51
Fix code snippet in p5.Vertex documentation
GregStanton 45591b0
Revise p5.Vertex documentation and add todo comment about a new imple…
GregStanton 37c2db4
Move TODO comments out of the code (and into project timeline)
GregStanton 9663eda
Document p5.Contour
GregStanton 5cd71a2
Document p5.ShapePrimitive (and revise some other documentation).
GregStanton 84a0fde
Revise docs for clarity.
GregStanton 0b117cc
Add TODO comment about Vertex interface
GregStanton 2fcc2b0
Describe custom vertex properties in Shape docs
GregStanton d862591
Revise p5.Contour docs based on new design
GregStanton 8ea67c5
Remove @constructor tags (YUIDoc syntax)
GregStanton 1443b53
Fix typo in Shape docs
GregStanton 78940ff
Update p5.ShapePrimitive docs with new design
GregStanton 4dac39e
Update p5.Vertex docs to reflect new design
GregStanton 567ff25
Make p5.Vertex and p5.Shape constructors consistent
GregStanton dbff7a2
Merge branch 'dev-2.0' of https://github.com/processing/p5.js into de…
GregStanton 727ff60
Move fill and stroke into the base renderer
davepagurek c756172
Add vertex state getter
davepagurek b4e43e5
Fix usage of false instead of null
davepagurek 64e319b
Add properties to current shape
davepagurek 290f5c7
Update vertexProperties to make setters
davepagurek cd156bf
Refactor old vertex() into legacyVertex() and start making new vertex()
davepagurek bc252e3
Implement Vertex constructor
GregStanton 0c61aaf
Implement ShapePrimitive, add some doc tags
GregStanton 2326ff5
Add PATH to constants.js
GregStanton 75030a5
Implement Contour
GregStanton 70a6fa6
Add EMPTY_PATH to constants.js
GregStanton d7aec76
Add kind getter to Contour to handle EMPTY_PATH
GregStanton 27f0b26
Add tag to Anchor docs
GregStanton 4eaa56f
Implement Anchor, add vertices to ShapePrimitive
GregStanton 13f21d9
Implement Segment, add tags to docs
GregStanton 787ca3c
Implement addToShape on ShapePrimitive (base class)
GregStanton dbf64f6
Changed initial value of index in Segment
GregStanton 65c2d32
Add note in Segment docs
GregStanton 20922c7
Move index out of base Segment class
GregStanton 9468d2e
Add at() method on Shape, revise Segment & Anchor, implement LineSegm…
GregStanton 13b0519
Merge branch 'dev-2.0' of https://github.com/processing/p5.js into de…
GregStanton 6adb65a
Implement all custom shape constants as Symbols
GregStanton ee77b1c
Implement PrimitiveShapeCreators
GregStanton b6aec19
Set all custom shape constants to numbers (for now)
GregStanton 69ed953
Make PrimitiveShapeCreators work with number constants instead of Sym…
GregStanton 893c897
Merge branch 'dev-2.0' of https://github.com/processing/p5.js into de…
GregStanton 60739f0
Implement beginShape(), endShape() on Shape and update docs
GregStanton 15001d9
Implement vertex() on Shape, refactor, fix bugs
GregStanton e862092
Fix spacing
GregStanton 722125b
Implement abstract base class PrimitiveVisitor
GregStanton 4fd0458
Add anchor visitor method to base class
GregStanton 18a2e6c
Implement PrimitiveToPath2DConverter with anchor and line segment vis…
GregStanton a42fb19
Use only new rendering code and start connecting visitors
davepagurek 49be169
Initial WebGL tesselation support
davepagurek d7f722a
Remove duplicate line of code
GregStanton 18179eb
Add comment about naming
GregStanton 2eb615a
Remove trailing spaces per linter
GregStanton ba4b42f
Implement getEndVertex() on base class (derived classes may override it)
GregStanton e86d2e0
Implement BezierSegment class and modify PrimitiveShapeCreators to re…
GregStanton a25cbaf
Add comment about Bezier order
GregStanton 94ce58e
Revise comment about Bezier order
GregStanton 3b5a0fc
Implement bezierOrder(), revise BezierSegment
GregStanton 81a9da8
Merge branch 'dev-2.0' of https://github.com/processing/p5.js into de…
GregStanton 0368609
Refactor, implement all vertex functions on Shape
GregStanton 002d4a1
Merge branch 'dev-2.0' of https://github.com/processing/p5.js into de…
GregStanton 9e63827
Implement Path2D visitor method for Bezier segments
GregStanton 3ca8c6f
Add explanatory and to-do comments
GregStanton 34e629b
Implement SplineSegment and refactor
GregStanton 8b45067
Fix naming
GregStanton 38e3906
Fix warning message and spacing
GregStanton e4a1749
Fix logic for warning message in SplineSegment
GregStanton 0e6debe
Implement catmullRomToBezier()
GregStanton a33fde0
Refactor and implement spline segment visitor
GregStanton 9a27eb4
Connect bezier methods
davepagurek 22e4450
Add spline end modes
davepagurek dba73b3
Update warning check
davepagurek d608016
Fix missing bits
davepagurek 1eb56fe
Merge branch 'dev-2.0' into greg
davepagurek 7fd2eb2
Support WebGL custom vertex attributes
davepagurek b26ca0f
Implement WebGL bezier vertex subdivision
davepagurek 9cb0dda
Implement spline vertices for WebGL
davepagurek 9b6745a
Only pass fill, stroke, and texture coordinates if they are supported
davepagurek 2ea2f77
Handle endShape(CLOSE) with a stroke join
davepagurek 76dab14
Only use JOIN internally when closing a shape
davepagurek 746bc1f
Handle closing of contours
davepagurek 7e33ec7
Remove begin/endGeometry in favor of buildGeometry
davepagurek 949ca22
Add WebGL handling for other shape primitives
davepagurek 9765060
Add 2D path visitors
davepagurek e16839c
Convert more legacy WebGL shape code
davepagurek 80e1c3e
Get 2D clipping working again
davepagurek 7fbcaa6
Add to-do comment and fix mistake
GregStanton cf4e1e1
Merge remote-tracking branch 'origin/dev-2.0' into dev-2.0
GregStanton c37d444
Merge remote-tracking branch 'upstream/dev-2.0' into dev-2.0
GregStanton da3c1fc
Address linter warnings
GregStanton 4805583
Replace shouldAddToShape() with addedToShape() and implement on base …
GregStanton d46c68a
Replace addedToShape() with a local variable
GregStanton bf66a98
Remove unnecessary constructors from derived classes
GregStanton 3d6afa4
Implement isolated and tessellation primitives, fix visitors
GregStanton b6725bb
Fix fills not working with QUAD_STRIP
davepagurek 2e31059
Fix QUAD_STRIP in 2d mode
davepagurek 7818a24
Fix more 2D bugs
davepagurek 315da93
Fix POINTS mode in 2D
davepagurek 999339e
Fix some spline test issues, rename curveVertex to splineVertex every…
davepagurek 1cb1fde
Fix more tests referring to TESS
davepagurek 33fc602
Fix contour ends not having a join in WebGL
davepagurek f7d0255
Fix some vertex property tests, switch some to visual tests, fix inst…
davepagurek 4b3606b
Fix the rest of the RendererGL tests!
davepagurek 593322c
Un-break typography tests
davepagurek fe78cfe
Add new tests
davepagurek 00f414a
Remove console logs
davepagurek 6f10af2
Use new SHOW/HIDE names, INCLUDE/EXCLUDE
davepagurek File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.