-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b66247f
commit 5b12d51
Showing
3 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/** | ||
* @module Shape | ||
* @submodule Custom Shapes | ||
* @for p5 | ||
* @requires core | ||
* @requires constants | ||
*/ | ||
|
||
// declare MyClass | ||
|
||
function customShapes(p5, fn) { | ||
|
||
// ---- FUNCTIONS ---- | ||
|
||
// documentation here | ||
|
||
// fn.myFunction = function() { | ||
// this.background('yellow'); // call an existing p5 function | ||
// }; | ||
|
||
// ---- CLASSES ---- | ||
|
||
// documentation here | ||
|
||
// p5.MyClass = MyClass; | ||
} | ||
|
||
export default customShapes; | ||
|
||
if (typeof p5 !== 'undefined') { | ||
customShapes(p5, p5.prototype); | ||
} |
This file contains 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