Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224{ "name": "Triangle", "events": [ { "eventType": "include", "includeSheet": "Core" }, { "eventType": "group", "disabled": false, "title": "Triangle", "description": "", "isActiveOnStart": true, "children": [ { "eventType": "variable", "name": "x1", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 389014445896976 }, { "eventType": "variable", "name": "y1", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 488637319026014 }, { "eventType": "variable", "name": "x2", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 506334712611597 }, { "eventType": "variable", "name": "y2", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 946574022487951 }, { "eventType": "variable", "name": "x3", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 446690396606150 }, { "eventType": "variable", "name": "y3", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 118140023022416 }, { "eventType": "variable", "name": "c", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 239841971319960 }, { "eventType": "variable", "name": "shadowColor", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 125665800597595 }, { "eventType": "variable", "name": "nudgePoint", "type": "number", "initialValue": "0", "comment": "", "isStatic": true, "isConstant": false, "sid": 870746358841022 }, { "eventType": "comment", "text": "[h3]Initialize[/h3]" }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 372839698965664 } ], "actions": [ { "type": "comment", "text": "👋 Interpret Parameters", "background-color": [ 0.6196078431372549, 0.9568627450980393, 1, 1 ] }, { "callFunction": "InitParameters", "sid": 204183322432720, "parameters": [ "5" ] }, { "type": "comment", "text": "[b]1st Parameter[/b] X1" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 773798130839949, "parameters": { "variable": "x1", "value": "Functions.ProcessNumericParameter(1, 0, 255)" } }, { "type": "comment", "text": "[b]2nd Parameter[/b] Y1" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 690392125897675, "parameters": { "variable": "y1", "value": "Functions.ProcessNumericParameter(2, 0, 255)" } }, { "type": "comment", "text": "[b]3rd Parameter[/b] X2" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 169579568879301, "parameters": { "variable": "x2", "value": "Functions.ProcessNumericParameter(3, 0, 255)" } }, { "type": "comment", "text": "[b]4th Parameter[/b] Y2" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 463096551403840, "parameters": { "variable": "y2", "value": "Functions.ProcessNumericParameter(4, 0, 255)" } }, { "type": "comment", "text": "[b]5th Parameter[/b] X3" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 479232319058063, "parameters": { "variable": "x3", "value": "Functions.ProcessNumericParameter(5, 0, 255)" } }, { "type": "comment", "text": "[b]6th Parameter[/b] Y3" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 835913996146129, "parameters": { "variable": "y3", "value": "Functions.ProcessNumericParameter(6, 0, 255)" } }, { "type": "comment", "text": "[b]7th Parameter[/b] C" }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 403049012176083, "parameters": { "variable": "c", "value": "Functions.ProcessColorParameter(7)" } } ], "sid": 184463396953623, "children": [ { "eventType": "block", "conditions": [], "actions": [ { "type": "comment", "text": "🛑 Print Parameters", "background-color": [ 0.9294117647058824, 0.7764705882352941, 0.984313725490196, 1 ] }, { "callFunction": "PrintParameterHint", "sid": 295158370088307 } ], "sid": 689712912162906 }, { "eventType": "comment", "text": "[h4]Finish Initialization[h4]" }, { "eventType": "block", "conditions": [], "actions": [ { "callFunction": "PaintingMusicMute", "sid": 791575509188213, "parameters": [ false ] }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 672200926626904, "parameters": { "variable": "shadowColor", "value": "rgba(random(0, 45), random(0, 45), random(0, 45), random(10, 60))" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 739366006978467, "parameters": { "variable": "x1", "value": "x1 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 841429877988301, "parameters": { "variable": "y1", "value": "y1 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 713431334127145, "parameters": { "variable": "x2", "value": "x2 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 661238052859360, "parameters": { "variable": "y2", "value": "y2 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 279283512800402, "parameters": { "variable": "x3", "value": "x3 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 961045535830361, "parameters": { "variable": "y3", "value": "y3 + choose(-1, 0, 1)" } }, { "callFunction": "TriangleRender", "sid": 869807547455210 }, { "id": "play", "objectClass": "Audio", "sid": 766319652372416, "parameters": { "audio-file": { "path": "Brushes/Triangle/Triangle - Start" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "id": "start-timer", "objectClass": "Clock", "sid": 681686665502636, "behaviorType": "Timer", "parameters": { "duration": "1.0", "type": "regular", "tag": "\"Shake\"" } }, { "id": "signal", "objectClass": "System", "sid": 599325620854003, "parameters": { "tag": "\"Brush Started\"" } } ], "sid": 561154417981628 } ] }, { "eventType": "comment", "text": "[h3]Audio[/h3]" }, { "eventType": "comment", "text": "[b]Play Theme Music[/b]", "background-color": [ 0.8196078431372549, 0.9725490196078431, 1, 1 ] }, { "eventType": "block", "conditions": [ { "id": "on-start-of-layout", "objectClass": "System", "sid": 378853990614751 } ], "actions": [ { "callFunction": "PaintingMusicMute", "sid": 700514036993255, "parameters": [ false ] } ], "sid": 934841524821888 }, { "eventType": "block", "conditions": [], "actions": [ { "callFunction": "SilentOnPause", "sid": 152452773043787, "disabled": true, "parameters": [ "\"Contrast\"" ] } ], "sid": 407183131297370 }, { "eventType": "comment", "text": "[h3]Present[/h3]" }, { "eventType": "block", "conditions": [ { "id": "on-timer", "objectClass": "Clock", "sid": 472095746091882, "behaviorType": "Timer", "parameters": { "tag": "\"Shake\"" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 979636552922917, "parameters": { "variable": "x1", "value": "x1 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 383307904778527, "parameters": { "variable": "y1", "value": "y1 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 240535457676474, "parameters": { "variable": "x2", "value": "x2 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 226759925009444, "parameters": { "variable": "y2", "value": "y2 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 754394732732628, "parameters": { "variable": "x3", "value": "x3 + choose(-1, 0, 1)" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 830474820273962, "parameters": { "variable": "y3", "value": "y3 + choose(-1, 0, 1)" } }, { "callFunction": "TriangleRender", "sid": 267551007225633 }, { "id": "play", "objectClass": "Audio", "sid": 235851829856741, "parameters": { "audio-file": { "path": "Brushes/Common/Common - Jitter" }, "loop": "not-looping", "volume": "random(-10) + 10", "stereo-pan": "0", "tag-optional": "\"\"" } } ], "sid": 224518350507516 }, { "eventType": "comment", "text": "[h3]Nudge[/h3]" }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 667527579647631, "parameters": { "variable": "Nudging" } }, { "id": "trigger-once-while-true", "objectClass": "System", "sid": 291338720079647 } ], "actions": [ { "type": "comment", "text": "Nudge [b]Started[/b]" }, { "id": "set-visible", "objectClass": "NudgeDot", "sid": 736815726120083, "disabled": true, "parameters": { "visibility": "visible" } }, { "id": "stop-animation", "objectClass": "NudgePoints", "sid": 301183330897772 }, { "id": "set-animation-frame", "objectClass": "NudgePoints", "sid": 369985156279397, "parameters": { "frame-number": "0" } }, { "id": "set-visible", "objectClass": "NudgePoints", "sid": 616961422013623, "parameters": { "visibility": "visible" } }, { "id": "set-object-time-scale", "objectClass": "System", "sid": 319389103544268, "parameters": { "object": "NudgePoints", "time-scale": "1.0" } }, { "id": "set-visible", "objectClass": "NudgeBorder", "sid": 757042416286282, "parameters": { "visibility": "invisible" } } ], "sid": 945915370630654, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 989338549713997, "parameters": { "variable": "nudgePoint", "comparison": 0, "value": "0" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 919735377232535, "parameters": { "object": "NudgePoints", "expression": "NudgePoints.For = 1" } } ], "actions": [ { "id": "set-position", "objectClass": "NudgeDot", "sid": 252677516797517, "parameters": { "x": "x1", "y": "y1" } }, { "id": "start-animation", "objectClass": "NudgePoints", "sid": 447144695155835, "parameters": { "from": "beginning" } }, { "id": "move-to-top", "objectClass": "NudgePoints", "sid": 321854374758023 } ], "sid": 478257838172424 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 415830867150251 }, { "id": "compare-eventvar", "objectClass": "System", "sid": 353581069077615, "parameters": { "variable": "nudgePoint", "comparison": 0, "value": "1" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 583581030944391, "parameters": { "object": "NudgePoints", "expression": "NudgePoints.For = 2" } } ], "actions": [ { "id": "set-position", "objectClass": "NudgeDot", "sid": 150088913251353, "parameters": { "x": "x2", "y": "y2" } }, { "id": "start-animation", "objectClass": "NudgePoints", "sid": 543168343992017, "parameters": { "from": "beginning" } }, { "id": "move-to-top", "objectClass": "NudgePoints", "sid": 543656203184196 } ], "sid": 665391294596943 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 752089603220854 }, { "id": "compare-eventvar", "objectClass": "System", "sid": 851469045354532, "parameters": { "variable": "nudgePoint", "comparison": 0, "value": "2" } }, { "id": "pick-by-evaluate", "objectClass": "System", "sid": 695396023096135, "parameters": { "object": "NudgePoints", "expression": "NudgePoints.For = 3" } } ], "actions": [ { "id": "set-position", "objectClass": "NudgeDot", "sid": 621454498482893, "parameters": { "x": "x3", "y": "y3" } }, { "id": "start-animation", "objectClass": "NudgePoints", "sid": 292114261929243, "parameters": { "from": "beginning" } }, { "id": "move-to-top", "objectClass": "NudgePoints", "sid": 282685538228309 } ], "sid": 248556456567322 }, { "eventType": "block", "conditions": [], "actions": [ { "type": "comment", "text": "Nudge [b]Ended[/b]" }, { "id": "wait-for-signal", "objectClass": "System", "sid": 395208320563007, "parameters": { "tag": "\"Nudge Ended\"" } }, { "id": "set-visible", "objectClass": "NudgePoints", "sid": 432947430889813, "parameters": { "visibility": "invisible" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 730172144069227, "parameters": { "variable": "nudgePoint", "value": "(nudgePoint + 1) % 3" } }, { "callFunction": "PaintingMusicMute", "sid": 609391806387702, "parameters": [ false ] } ], "sid": 215402365852969 } ] }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 213162622695900, "parameters": { "variable": "Nudging" } } ], "actions": [ { "id": "set-position", "objectClass": "NudgeDot", "sid": 687168523437710, "parameters": { "x": "min(max(0, Self.X + NudgedX), 255)", "y": "min(max(0, Self.Y + NudgedY), 255)" } } ], "sid": 391408744124699, "children": [ { "eventType": "block", "conditions": [ { "id": "compare-eventvar", "objectClass": "System", "sid": 561057186218279, "parameters": { "variable": "nudgePoint", "comparison": 0, "value": "0" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 181126934639702, "parameters": { "variable": "x1", "value": "NudgeDot.X" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 692419825054424, "parameters": { "variable": "y1", "value": "NudgeDot.Y" } } ], "sid": 641486129777029 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 952345439427956 }, { "id": "compare-eventvar", "objectClass": "System", "sid": 889163350907804, "parameters": { "variable": "nudgePoint", "comparison": 0, "value": "1" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 276460881369172, "parameters": { "variable": "x2", "value": "NudgeDot.X" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 410106189444294, "parameters": { "variable": "y2", "value": "NudgeDot.Y" } } ], "sid": 645161258532469 }, { "eventType": "block", "conditions": [ { "id": "else", "objectClass": "System", "sid": 406969141679565 }, { "id": "compare-eventvar", "objectClass": "System", "sid": 991414947085399, "parameters": { "variable": "nudgePoint", "comparison": 0, "value": "2" } } ], "actions": [ { "id": "set-eventvar-value", "objectClass": "System", "sid": 173041224847893, "parameters": { "variable": "x3", "value": "NudgeDot.X" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 650027845832179, "parameters": { "variable": "y3", "value": "NudgeDot.Y" } } ], "sid": 669277861694480 }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 780478419021719, "parameters": { "object": "NudgePoints", "expression": "NudgePoints.For = 1" } } ], "actions": [ { "id": "set-position", "objectClass": "NudgePoints", "sid": 831352197527423, "parameters": { "x": "x1", "y": "y1" } } ], "sid": 242005822228564 }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 478566790621686, "parameters": { "object": "NudgePoints", "expression": "NudgePoints.For = 2" } } ], "actions": [ { "id": "set-position", "objectClass": "NudgePoints", "sid": 720935192358193, "parameters": { "x": "x2", "y": "y2" } } ], "sid": 786903534147096 }, { "eventType": "block", "conditions": [ { "id": "pick-by-evaluate", "objectClass": "System", "sid": 373552404230313, "parameters": { "object": "NudgePoints", "expression": "NudgePoints.For = 3" } } ], "actions": [ { "id": "set-position", "objectClass": "NudgePoints", "sid": 470313619470443, "parameters": { "x": "x3", "y": "y3" } } ], "sid": 868069730889142 }, { "eventType": "block", "conditions": [], "actions": [ { "callFunction": "TriangleRender", "sid": 533447566070954 } ], "sid": 217960075800046 } ] }, { "eventType": "comment", "text": "[h3]Paint[/h3]" }, { "eventType": "block", "conditions": [ { "id": "compare-boolean-eventvar", "objectClass": "System", "sid": 326969733830121, "parameters": { "variable": "Painting" } } ], "actions": [ { "id": "paste-object", "objectClass": "Painting", "sid": 935912136507397, "parameters": { "object": "TriangleBuffer", "effects": "without-effects" } }, { "id": "play", "objectClass": "Audio", "sid": 720268128673002, "parameters": { "audio-file": { "path": "Brushes/Primitives/Primitive - Released" }, "loop": "not-looping", "volume": "0", "stereo-pan": "0", "tag-optional": "\"\"" } }, { "type": "comment", "text": "Signify to [b]Core[/b] that the canvas has been painted." }, { "id": "signal", "objectClass": "System", "sid": 903864399960181, "parameters": { "tag": "\"painted\"" } } ], "sid": 664281121678556 }, { "eventType": "comment", "text": "[h3]DeInitialize[/h3]" }, { "eventType": "block", "conditions": [ { "id": "on-end-of-layout", "objectClass": "System", "sid": 720632770032226 } ], "actions": [ { "id": "stop", "objectClass": "Audio", "sid": 309992771359167, "disabled": true, "parameters": { "tag": "\"Contrast\"" } }, { "id": "set-eventvar-value", "objectClass": "System", "sid": 462917463186168, "parameters": { "variable": "nudgePoint", "value": "0" } } ], "sid": 906400460671394 }, { "functionName": "TriangleRender", "functionDescription": "", "functionCategory": "", "functionReturnType": "none", "functionCopyPicked": false, "functionIsAsync": false, "functionParameters": [], "eventType": "function-block", "conditions": [], "actions": [ { "id": "clear-canvas", "objectClass": "TriangleBuffer", "sid": 710578679615569, "parameters": { "color": "rgba(0, 0, 0, 0)" } }, { "id": "reset-poly", "objectClass": "TriangleBuffer", "sid": 785967989180654 }, { "id": "add-poly-point", "objectClass": "TriangleBuffer", "sid": 735540113940888, "parameters": { "x": "x1 + 1", "y": "y1 + 1" } }, { "id": "add-poly-point", "objectClass": "TriangleBuffer", "sid": 770311187613078, "parameters": { "x": "x2 + 1", "y": "y2 + 1" } }, { "id": "add-poly-point", "objectClass": "TriangleBuffer", "sid": 523975397843660, "parameters": { "x": "x3 + 1", "y": "y3 + 1" } }, { "id": "fill-poly", "objectClass": "TriangleBuffer", "sid": 392670126697182, "parameters": { "color": "shadowColor", "convex": false } }, { "id": "reset-poly", "objectClass": "TriangleBuffer", "sid": 333240060233591 }, { "id": "add-poly-point", "objectClass": "TriangleBuffer", "sid": 591784115314121, "parameters": { "x": "x1", "y": "y1" } }, { "id": "add-poly-point", "objectClass": "TriangleBuffer", "sid": 134093675778933, "parameters": { "x": "x2", "y": "y2" } }, { "id": "add-poly-point", "objectClass": "TriangleBuffer", "sid": 219833796026900, "parameters": { "x": "x3", "y": "y3" } }, { "id": "fill-poly", "objectClass": "TriangleBuffer", "sid": 108875636897529, "parameters": { "color": "c", "convex": false } } ], "sid": 297639124836400 } ], "sid": 398188341781032 } ], "sid": 359915575425256}