/** * Created with Bezier Drawing Tool, * a program by Raphael Rouvinov-Kats * https://www.khanacademy.org/cs/bezier-drawing-tool/2711580088 * */ var speed = 30; var curves = [[[174,123,-65536],[175.5,88.5,-65536],[200.5,44.5,-65536],[247.5,33,-65536],[283,40,-65536],[310,65,-65536],[296.5,81,-65536],[282.5,121,-65536],[251,189,-65536],[219.5,270.5,-65536],[216,316.5,-65536],[219,326.5,-65536],[220,332,-65536],[220,335,-65536],[220,336.5,-65536]],[[164,109,-65536],[146,95.5,-65536],[98,71.5,-65536],[68,66,-65536],[42,69.5,-65536],[26,73,-65536],[27,90,-65536],[34.5,123,-65536],[49.5,134,-65536],[104,192,-65536],[151.5,248,-65536],[184.5,313.5,-65536],[199,353.5,-65536],[200,366,-65536],[197.5,381,-65536],[197,385.5,-65536]],[[80,128,-65536],[80,143,-65536],[80,159,-65536],[80,158,-65536],[78,152,-65536],[76.5,134,-65536],[77,117.5,-65536],[77,111.5,-65536],[81.5,114.5,-65536],[89,115,-65536],[89,116.5,-65536],[95.5,120.5,-65536],[99,128,-65536],[101.5,140,-65536],[101.5,153,-65536],[101,165,-65536],[93.5,165,-65536],[82.5,163,-65536],[82.5,163,-65536],[75,158.5,-65536]],[[108,152,-65536],[109.5,156.5,-65536],[112,174.5,-65536],[111,178.5,-65536],[111,176,-65536],[120,164,-65536],[139.5,150,-65536],[145.5,151.5,-65536],[150,153,-65536],[154.5,153,-65536],[156.5,153,-65536]],[[167,159,-65536],[165.5,159,-65536],[158.5,159,-65536],[149,169.5,-65536],[147,175,-65536],[147.5,181,-65536],[148,185.5,-65536],[157,187.5,-65536],[161.5,189,-65536],[163.5,188,-65536],[163.5,185,-65536],[164.5,171,-65536],[164,167,-65536]],[[165,164,-65536],[166.5,173,-65536],[166,182,-65536],[169,187,-65536],[169.5,190,-65536],[169,191,-65536]],[[179,169,-65536],[180.5,182.5,-65536],[183,191.5,-65536],[188,197.5,-65536],[189,197,-65536],[190,196,-65536],[194.5,188.5,-65536],[199,183.5,-65536],[203,177,-65536],[202.5,175.5,-65536],[203.5,174,-65536],[203,175,-65536],[204.5,182.5,-65536],[207,190.5,-65536],[209,191.5,-65536],[209.5,191.5,-65536],[212,194,-65536],[218.5,197.5,-65536],[218,197,-65536],[221,195.5,-65536],[223,191.5,-65536],[226.5,185.5,-65536],[228,179,-65536],[228.5,174.5,-65536]],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[]]; frameRate(speed); var c = 0; var p = 0; var points; background(255, 251, 245); var draw = function() { if(c < curves.length) { points = curves[c]; if(p < points.length - 4) { stroke(points[p][2]); strokeWeight(0.2); fill(0, 0, 0, 0); bezier(points[p][0], points[p][1], points[p + 1][0], points[p + 1][1], points[p + 2][0], points[p + 2][1], points[p + 3][0], points[p + 3][1]); p++; } else { p = 0; c++; } } }; var mousePressed = function() { background(255, 251, 245); p = 0; };