I would suggest using svg filters , if you just want to quickly experiment, open the Inkscape file , select one of your rectangles, then add the Chalk and Sponge filter and play with the parameters until you get what you like.
This is just the beginning, but you can get some pretty good results from here, here is an example:
<filter id="chalk" height="2" width="1.6" color-interpolation-filters="sRGB" y="-0.5" x="-0.3">
<feTurbulence baseFrequency="0.32065" seed="115" result="result1" numOctaves="1" type="turbulence"/>
<feOffset result="result2" dx="-5" dy="-5"/>
<feDisplacementMap scale="10" yChannelSelector="G" in2="result1" xChannelSelector="R" in="SourceGraphic"/>
<feGaussianBlur stdDeviation="1.1169"/>
</filter>
Then you use it in forms and text if necessary, for example:
<text filter="url(#chalk)" font-size="26px" fill="white">f(x) = 4x + 7</text>
<rect filter="url(#chalk)" width="150" stroke="#FFF" stroke-dasharray="16,4" stroke-width="4" fill="none"/>
source
share