Unlock custom brushes, natural fill effects and intuitive hatching in p5.js
Version name
Alejandro1ac35ffc8293
diff --git a/p5.brush.js b/p5.brush.jsindex 0402d13..4257170 100644--- a/p5.brush.js+++ b/p5.brush.js@@ -1,6 +1,6 @@/*** @fileoverview p5.brush - A comprehensive toolset for brush management in p5.js.- * @version 1.0.4+ * @version 1.0.4c* @license MIT* @author Alejandro Campos Uribe*diff --git a/p5.brush.min.js b/p5.brush.min.jsindex 171e468..e694ca8 100644--- a/p5.brush.min.js+++ b/p5.brush.min.js@@ -1,4 +1,4 @@-/* p5.brush.js v1.0.4 - Alejandro Campos - MIT License */+/* p5.brush.js v1.0.4c - Alejandro Campos - MIT License */(function(m,N){"object"===typeof exports&&"undefined"!==typeof module?N(exports):"function"===typeof define&&define.amd?define(["exports"],N):(m=m||self,N(m.brush={}))})(this,function(m){function N(a=!1){Y=!0;l=a?a:window.self;t.load();r.create();Z(l.width/250)}function E(){Y||N()}function aa(a,b,c,d,e=!1){let g=a.x;a=a.y;var k=b.x,p=b.y;b=c.x;c=c.y;var n=d.x,q=d.y;if(g===k&&a===p||b===n&&c===q)return!1;d=k-g;k=p-a;p=n-b;q-=c;n=q*d-p*k;if(0===n)return!1;p=(p*(a-c)-q*(g-b))/n;b=(d*(a-c)-k*(g-b))/n;return!e&&(0>b||1<b)?!1:{x:g+p*d,y:a+p*k}}function S(a,b,c,d){return(180/Math.PI*Math.atan2(-(d-b),c-a)%360+360)%360}function ba(){u.field.isActive=r.isActive;u.field.current=r.current;u.stroke.isActive=h.isActive;u.stroke.brush=h.name;u.stroke.color=h.c;u.stroke.weight=h.w;u.stroke.clip=h.cr;u.hatch.isActive=y.isActive;u.hatch.hatchingParams=y.hatchingParams;u.hatch.hatchingBrush=y.hatchingBrush;u.fill.isActive=v.isActive;u.fill.color=v.color;u.fill.opacity=v.opacity;u.fill.bleed_strength=v.bleed_strength;u.fill.texture_strength=v.texture_strength;u.fill.border_strength=v.border_strength;u.others.rotate=x.rotation}function ca(){r.isActive=u.field.isActive;r.current=u.field.current;h.isActive=u.stroke.isActive;h.name=u.stroke.brush;h.c=u.stroke.color;h.w=u.stroke.weight;h.cr=u.stroke.clip;y.isActive=u.hatch.isActive;y.hatchingParams=u.hatch.hatchingParams;y.hatchingBrush=u.hatch.hatchingBrush;v.isActive=u.fill.isActive;v.color=u.fill.color;v.opacity=u.fill.opacity;v.bleed_strength=u.fill.bleed_strength;