This code that in the case of using my shapes library.
You can use following code and use it. (Not supported line up, effect)
- Change these to any parameters you like.
- ctx is canvas context 2d.
- x is where you want to put it.
- y is where you want to put it.
Click to copy!