@rahimhaji wrote:
Dear friends,
I want to create a pattern like below:
https://www.ultraplay.com/products/freestanding/trike-hazard-barrier-sign
using the below document
https://gojs.net/latest/intro/brush.html#PatternBrushes
(Pattern Brushes)
I wrote the code like below:function makePattern() {
var patternCanvas = document.createElement(‘canvas’);
patternCanvas.width = 50;
patternCanvas.height = 100;
var pctx = patternCanvas.getContext(‘2d’);pctx.fillStyle = “yellow”;
pctx.moveTo(20,90);
pctx.lineTo(40,90);
pctx.lineTo(20,0);
pctx.lineTo(0,0);
pctx.fill();
return patternCanvas;
}it did not come well pls correct me to create exactly same like above hazard symbol.
Thanks and Regards,
Syed Abdul Rahim
Posts: 2
Participants: 2