Texas
to generate a new and unique variation
Every variart piece is open source, you can see exactly how it is drawn from the code.
var color = '#002868';
s.rect(0, 0, width, height).attr({fill: color});
var texas = "m 324.5758,406.0908 c -0.6084,-3.79483 -1.03418,-7.6262 -2.26076,-11.29305 -0.21587,-1.49938 -0.59272,-2.76054 -2.34522,-1.98599 2.13552,1.96741 1.75918,5.24396 3.24253,7.63455 0.93129,1.65813 0.0587,4.19595 1.36345,5.64449 z m 13.14695,-60.26908 c -3.44712,2.05884 -6.10679,5.20173 -8.67541,8.21624 -0.94562,1.52947 -2.71949,3.73947 -1.35289,0.60863 1.8079,-2.3291 2.9969,-5.28753 5.88659,-6.48652 -0.0591,-1.41704 3.66403,-1.89939 4.85595,-3.51575 1.97737,-0.46811 3.94221,-2.88348 5.22641,-3.2426 -0.90823,2.60637 -4.13268,2.61526 -5.94065,4.42 z m 6.1115,-4.90943 c 1.68023,-2.13092 0.60867,0.78421 6.8e-4,0 l -6.8e-4,0 z m 5.11088,-5.93487 c -3.12792,-0.21131 -0.8285,1.58229 0,0 z m 33.51261,-18.58168 c -2.24426,1.67583 -4.96358,2.84794 -6.86752,4.92213 0.53745,-1.73182 5.13128,-4.06366 5.94117,-5.56051 1.0443,-0.61476 1.26069,-2.5972 2.35333,-1.56006 3.0989,-0.81384 -1.01684,1.64961 -1.42698,2.19844 z m -203.728,-215.0874 c 24.96864,0.002 49.93728,0.005 74.90591,0.007 0.0133,19.53549 0.0265,39.07099 0.0398,58.60648 4.64897,-0.85439 4.29884,6.13909 8.72858,6.26828 1.75404,-0.0913 2.62438,-2.54783 4.40883,-0.18867 2.46179,1.76874 1.64586,-4.62382 3.62102,-0.91195 3.87564,0.40605 1.66547,7.60324 6.40628,6.19871 1.73963,0.27601 3.14823,-0.63157 4.23453,1.64679 3.48517,1.76528 7.66181,-1.69511 10.05125,2.29925 2.42371,1.70271 2.31955,-4.13432 5.02226,-1.77567 1.86199,0.45095 3.26361,0.77436 4.64346,-0.23707 -0.58184,2.74525 0.56944,4.85839 3.60584,4.55118 1.73011,1.21325 -2.62325,3.58269 1.04055,3.86441 3.63391,1.44017 4.98741,-5.86353 7.63642,-2.81398 0.53331,0.47315 0.28971,3.06956 2.45798,1.5442 2.22975,-0.88515 1.53483,5.39811 4.11206,1.33524 1.28087,-0.006 2.68585,-0.56914 4.16677,-1.29142 0.79567,1.69024 -2.11682,5.1329 1.74969,5.27737 0.65365,-1.52218 1.41671,-2.92902 1.17842,-3.95023 2.29946,1.70026 1.44808,-5.15599 3.9923,-1.71632 0.55015,2.63031 5.27005,3.18647 6.46486,0.28617 1.28246,0.58248 1.05388,3.23741 3.23162,3.05232 0.76008,1.50466 3.33016,0.6616 3.6222,3.22065 2.02902,1.00995 1.50172,-3.75952 4.2321,-1.72196 1.01948,-0.97802 2.23368,-3.21902 3.90339,-2.61148 1.13897,-0.74229 3.29307,-1.00274 5.37443,0.032 2.27154,-0.20135 4.46308,-3.42242 6.85058,-2.29979 0.8196,2.03413 5.51835,1.88427 6.40381,0.54498 1.49983,0.91071 1.27806,-2.75946 3.74709,-1.16098 1.55798,0.98646 1.79292,0.95873 3.56643,2.39545 1.76798,-0.1451 2.04629,4.02285 4.59136,2.73428 1.28799,1.79311 3.21564,2.02836 4.78394,2.73736 1.45479,0.36337 1.76847,0.0278 2.09781,1.59001 2.92728,-1.56684 2.9877,2.54742 4.94206,1.88525 1.50152,0.59345 2.1049,-1.48862 3.09537,0.0527 0.47061,-1.24404 3.88848,-0.99517 4.29998,0.0782 0.17189,6.93527 0.32059,13.86895 0.20637,20.8081 -0.0263,8.44482 -0.12108,16.89123 -0.10469,25.33505 1.7944,0.42773 1.79253,3.27044 3.45134,3.31704 1.38611,1.96884 3.19823,4.90215 2.31081,7.40146 -1.42324,2.71099 3.67234,2.88932 1.83801,5.08125 1.3448,0.96453 2.62146,2.72411 1.479,4.61405 2.68093,0.98247 1.1951,3.98897 3.43148,4.56107 -1.17541,1.44549 2.06545,3.69182 -0.30819,4.07186 -1.58029,-0.0161 1.91882,2.08306 0.0162,2.78832 -0.24277,1.89213 -0.34766,3.7886 -1.44971,5.68854 -1.18512,1.68875 -1.91865,3.34432 -2.6564,4.70674 -0.44401,1.20057 1.38222,3.29152 -0.59738,4.43348 -1.52459,2.18678 1.85205,3.42698 0.59738,5.7562 1.22414,1.89558 -0.005,4.3911 -1.58457,6.07587 -2.38809,-0.83135 -1.5986,2.52334 -3.42516,3.78974 -1.93079,2.20379 4.6216,5.58722 0.43539,5.12703 -3.90164,-0.42845 -7.23748,1.85897 -10.72442,3.22101 -3.63666,1.69211 -7.57775,2.95745 -10.58862,5.69257 -1.37994,-0.47352 2.37405,-3.4202 3.50484,-3.22708 0.55451,-2.26414 3.30526,0.34535 3.73048,-2.15186 -1.66396,0.94896 -2.65508,-1.33113 -4.59537,0.38104 -1.27626,0.66084 -4.85109,0.44467 -2.26073,-0.35775 1.02063,-2.27783 1.86959,-5.85973 1.64356,-7.65952 -1.42924,0.20641 0.42879,2.63056 -1.54974,1.11331 -1.72878,1.18715 -1.35957,-0.0304 -1.74639,-0.45303 -0.81134,1.75948 -0.0146,1.36093 -1.36476,3.24239 -1.25055,1.83942 -3.45816,-1.06943 -4.5984,-2.00556 -0.84945,-2.26633 -0.6893,2.55004 1.44759,1.79655 -0.48503,1.45785 0.33991,2.71287 -0.5942,4.27927 2.24445,1.50421 2.76068,1.49847 1.74924,2.38236 0.98582,0.42449 -1.01551,1.79361 1.14735,0.73833 -0.52824,-1.23294 1.83949,2.72901 -0.42386,2.29116 1.02246,1.15284 -0.0343,2.40553 -0.20987,0.85602 -1.59808,-0.0354 -0.36245,1.14648 -2.28371,1.11622 0.72604,2.76668 -1.65741,-1.44073 -0.3682,1.67868 -1.3887,3.07244 -3.40073,-0.8438 -3.93482,0.74251 2.56785,0.78582 -2.40955,5.70632 -1.3822,5.96479 1.19671,-1.17676 4.47916,-3.69378 1.88803,-1.31215 -2.0281,1.60698 -3.83237,3.51749 -5.96317,4.9366 -2.33072,0.33512 -4.06681,2.54119 -6.12714,3.15401 -1.21215,0.77675 -4.62961,-0.36375 -4.61115,0.54366 -1.4002,0.76789 -3.55893,0.91882 -3.26515,2.99567 -0.23809,1.35657 2.20121,-0.75497 3.12847,-0.90793 1.5275,-0.77497 2.99545,-1.67148 4.47651,-2.52974 -0.18833,0.74832 -2.15733,1.39463 -3.01526,2.07165 -4.36085,2.53992 -9.32696,3.99594 -13.29505,7.16479 -0.72661,-1.10065 1.94681,-1.57296 2.68984,-2.30751 1.74427,-1.0802 3.63642,-1.87194 5.49243,-2.73418 1.9659,-4.17529 -3.68252,0.35615 -5.62377,-0.55063 -0.55123,-0.59458 2.0071,-5.14497 0.37995,-2.72663 -0.39324,1.22975 -3.28248,0.42095 -2.76751,2.26693 -2.19236,1.02641 -1.92012,-4.63438 -3.17207,-2.07726 1.69369,-0.27749 -0.27455,2.52266 1.07498,2.78671 -1.84549,1.58933 -0.98537,-1.77217 -2.48783,-0.0365 0.0227,-1.35558 -2.50138,-0.51519 -1.78405,-2.44302 -1.05908,-2.83234 -3.0572,1.07651 -1.33399,2.03541 -0.76355,3.00225 2.23084,0.007 2.63687,3.09162 1.75904,0.48785 -3.46421,1.21014 0.0774,1.28979 0.71046,-2.39117 5.00179,1.89337 1.26337,1.71624 -1.72149,0.86917 -3.44722,1.72855 -5.28081,2.33945 -1.27689,-2.09698 -2.70907,-3.66755 -3.74758,-6.35783 -1.76894,-0.29923 -0.82228,3.09068 0.32735,1.0132 0.51813,1.89268 -0.8184,1.29324 0.76789,2.63347 -0.75873,-0.25055 -3.27714,-0.055 -0.94406,1.59669 1.22986,1.61182 1.01225,4.27239 -1.17929,5.32756 -1.16911,1.64788 -3.28404,2.28778 -1.58401,-0.31346 -0.35238,-1.26572 0.96512,-3.33275 -0.66994,-1.08247 -0.43336,0.17836 0.21536,4.06855 -1.57134,2.24765 1.60834,-4.02091 -3.79729,2.38993 -3.1511,-0.5339 -2.084,0.17681 0.86018,1.48913 -1.31723,1.94626 -2.68721,1.52935 3.23037,0.97952 0.34991,3.51271 1.45267,-0.63714 2.21738,-3.96119 4.02604,-3.67669 -0.43544,2.89365 -2.76823,6.91832 -5.04196,8.02699 -0.46439,-2.79876 -2.90317,-0.56999 -3.38077,-1.47271 -1.8649,1.41644 -4.4531,-1.1612 -4.75591,0.28997 1.43139,2.33031 5.21936,-0.69532 4.05719,2.58881 0.84335,1.45753 2.12787,1.60499 1.62127,2.46782 0.24298,-0.39078 2.8526,-0.96388 1.15264,0.89061 -0.57989,2.37108 -2.54842,4.34866 -2.37288,7.01871 0.0158,2.23451 -3.56818,3.92809 -4.17828,3.27146 1.85445,-0.56251 1.91951,-4.71976 0.0375,-1.38968 -1.19778,1.64487 -2.64587,1.74403 -3.0626,-0.21736 -1.4375,-2.31217 -0.52373,0.65715 -0.10662,1.6364 -3.30878,1.31252 1.16584,-0.44943 0.94537,1.27677 1.81237,0.82805 3.81157,-0.56647 5.13845,-0.36513 -0.45582,2.25592 -0.78757,4.69794 -0.38406,6.99173 -0.79206,1.72825 -0.51145,6.95463 1.49068,5.08487 -0.75026,-2.37604 -0.48831,-4.79249 -0.4481,-7.28829 0.0736,-2.24607 0.2161,-4.56224 0.76384,-6.67245 0.1422,-2.73962 2.45679,-5.14034 2.75332,-7.92625 1.52699,-1.56528 3.7238,-5.61648 3.54877,-6.33867 3.77021,-0.78229 -2.03857,3.53818 -1.90776,5.3174 -3.55023,6.53185 -5.63297,14.05915 -4.39416,21.5061 -0.57282,2.61727 3.21405,7.50242 1.33229,8.67032 -2.97342,-0.70958 -1.5845,-6.609 -4.88461,-7.13794 1.48444,2.71913 1.53978,6.49422 2.56017,9.5838 1.97271,1.54428 1.41661,4.27181 2.85314,5.59465 -1.07075,0.17638 -0.43726,4.48195 0.799,5.28887 2.2302,-0.91613 1.46135,3.83467 1.96214,0.75344 1.02525,-0.66779 1.52068,4.10703 -0.0925,2.7353 -1.69563,0.25337 -4.20461,0.35554 -4.64996,2.03283 0.6375,2.6513 -2.65654,0.31893 -3.79102,-0.49469 -0.86268,-1.03701 -2.70067,-1.15787 -3.07698,-3.26262 -1.1218,-0.56561 -3.10048,0.14219 -4.00882,-0.94792 -2.10873,-0.35275 -5.5334,0.31064 -7.07319,0.13957 -1.57413,-0.14882 -4.79878,-0.50884 -4.85571,-1.91478 -1.78762,-0.0969 -3.42397,-2.98114 -5.20926,-2.40621 -1.54503,-2.37643 -4.83126,0.37026 -5.31051,-2.30175 -1.60951,-0.48394 -2.36915,-2.67456 -4.37072,-2.13699 -1.74224,-0.40562 -2.86576,-1.1791 -5.03169,-1.04293 -1.11816,-1.20518 0.28988,-3.11734 -2.06927,-3.99561 -0.36185,-2.70608 -1.5213,-5.4263 -2.37533,-7.76606 -1.55453,-2.71801 -4.5312,-4.21462 -4.57589,-7.02219 0.58725,-2.1047 0.30894,-4.89127 -1.36624,-6.21571 -1.93885,-0.27702 2.28371,-5.10223 -0.65698,-6.17479 0.55262,-2.57858 -2.14263,-3.10347 -3.54547,-3.39383 -1.21739,-0.50893 -2.98314,-3.60264 -4.36625,-3.59525 -1.10868,-1.80844 -1.48425,-3.96227 -2.29683,-5.96587 -2.8949,-0.86705 -2.16431,-5.29363 -5.76137,-5.57058 -2.86204,-2.00342 -4.10623,-5.38494 -4.71529,-8.76231 1.18417,-0.62196 -1.7414,-1.61048 -1.11627,-3.06432 -3.08866,-1.42251 -2.26382,-5.25439 -4.37473,-7.53093 -2.09363,-2.07062 -1.10852,-5.89239 -3.60363,-7.62118 -1.38075,-1.32918 -1.28144,-3.74505 -3.4759,-4.33093 -1.81727,-1.7157 -3.98116,-2.98723 -5.5309,-5.01287 -1.82371,-1.27662 -5.23223,-1.85171 -4.09633,-4.54242 -0.18301,-2.08139 -2.35063,3.24359 -1.34809,-0.86392 -1.38471,-0.14515 -2.48981,-1.82883 -2.68345,-3.32469 0.50712,-0.94352 -1.81145,1.06065 -1.36493,-0.80784 -1.3458,0.86603 -1.8921,0.3586 -1.89244,-0.83895 -1.25944,1.99599 -3.55351,1.45539 -5.41284,0.94156 -1.79311,-0.80925 -1.63503,-0.61076 -4.06449,-0.27363 -1.44749,-0.76534 -3.69839,0.52418 -5.83052,-0.57598 -1.98012,-2.02126 -5.73194,-2.64853 -5.97932,1.048 -2.54633,-0.53475 -4.95273,0.91098 -7.28103,1.48235 -0.53775,2.4622 -1.79268,3.80157 -2.91648,5.7475 -0.063,2.66318 -0.69224,4.04975 -1.98866,6.18713 -1.10994,1.66182 1.84933,2.6417 -0.98983,2.96963 -1.66546,0.68411 -2.59122,2.8146 -4.18799,3.78183 0.47367,3.38283 -4.85889,3.00253 -5.46667,1.17017 -0.92775,-0.0742 -2.78838,-0.11856 -4.23867,-1.55132 -1.20165,-2.6316 -4.04552,-1.88581 -6.08966,-3.12141 -1.44841,-1.60571 -1.89381,-2.6258 -4.57681,-2.72953 -2.96671,-0.3805 -5.54748,-2.19707 -7.19458,-4.58934 -0.36228,-2.13438 -3.22571,-1.76197 -4.7475,-3.08786 -3.56339,-1.80508 -4.02769,-5.7401 -6.09425,-8.77017 -1.11821,-1.94572 -1.62426,-3.8326 -1.72467,-5.96078 0.89485,-2.74385 -0.38918,-6.12574 -2.68122,-7.72199 -1.18074,-1.67464 -1.50345,-4.15029 -2.34209,-6.69596 -1.74452,-1.66105 -2.47417,-3.22162 -4.1931,-3.98007 -2.23206,-2.36124 -4.74225,-2.97514 -7.33086,-4.13502 -1.85615,-2.18096 -5.26209,-3.88183 -6.12799,-7.07883 -3.42019,-1.02434 -4.7179,-4.52611 -7.39874,-6.19871 -1.0126,-3.00767 -5.72949,-2.5243 -7.270645,-5.40073 -2.317738,-1.93407 -2.853909,-5.41113 -5.309015,-7.58727 -3.190006,-0.0427 -5.348656,-2.81011 -4.810799,-5.99792 -1.79356,-2.40449 1.368241,-1.37287 2.771442,-1.58256 28.418287,0.01 56.836577,0.0198 85.254867,0.0298 0.19471,-45.19597 0.38941,-90.39195 0.58412,-135.58792 0.36291,0.003 0.7347,0.0148 1.09174,0.0126 z"
texas = s.path(texas).attr({fill: '#fff'})
var boundingBox = texas.getBBox();
var starX = intVariable('starX', Math.floor(boundingBox.x), Math.floor(boundingBox.x2));
var starY = intVariable('starY', Math.floor(boundingBox.y), Math.floor(boundingBox.y2));
star = s.path("M16,22.375L7.116,28.83l3.396-10.438l-8.883-6.458l10.979,0.002L16.002,1.5l3.391,10.434h10.981l-8.886,6.457l3.396,10.439L16,22.375L16,22.375z")
star.transform(Snap.format('t{x},{y}s1.5', {x: starX, y: starY}));
star.attr({fill: '#cc0000'});
Copyright © 2014–2025 Kevin Marsh. All rights reserved. Questions? Comments? hello@variart.io