{"__browser":{"device":"unknown_device","mobile":false,"name":"unknown browser","platform":"unknown_platform","version":"0"},"__constants":{},"__CPDATA":{"domain_iframe":"https://cdpn.io","environment":"production","host":"codepen.io","iframe_allow":"accelerometer; ambient-light-sensor; camera; display-capture; encrypted-media; geolocation; gyroscope; microphone; midi; payment; web-share; vr","iframe_sandbox":"allow-forms allow-modals allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-top-navigation-by-user-activation allow-downloads allow-presentation"},"__graphql":{"data":{"data":{"sessionUser":{"id":"VoDkNZ","name":"Captain Anonymous","title":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","currentContext":{"id":"VoDkNZ","title":"Captain Anonymous","name":"Captain Anonymous","avatar":"https://assets.codepen.io/t-1/user-default-avatar.jpg?format=auto&version=0","username":"anon","__typename":"User"},"currentTeamId":null,"username":"anon","admin":false,"anon":true,"pro":false,"verified":false,"teams":[],"__typename":"User"}}},"url":"https://codepen.io/graphql","api":"cprails","cpedata":{"action":"show","controller":"live_fullpage"}},"__user":{"anon":true,"base_url":"/anon/","current_team_id":0,"current_team_hashid":null,"hashid":"VoDkNZ","id":1,"itemType":"user","name":"Captain Anonymous","paid":false,"tier":0,"username":"anon","created_at":null,"email_verified":null,"collections_count":0,"collections_private_count":0,"followers_count":0,"followings_count":0,"pens_count":0,"pens_private_count":0,"projects_count":0,"projects_private_count":0},"__firebase":{"config":{"apiKey":"AIzaSyBgLAe7N_MdFpuVofMkcQLGwwhUu5tuxls","authDomain":"codepen-store-production.firebaseapp.com","databaseURL":"https://codepen-store-production.firebaseio.com","disabled":false,"projectId":"codepen-store-production"},"token":"eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJodHRwczovL2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImNsYWltcyI6eyJvd25lcklkIjoiVm9Ea05aIiwiYWRtaW4iOmZhbHNlfSwiZXhwIjoxNjc1NTc4NjQ2LCJpYXQiOjE2NzU1NzUwNDYsImlzcyI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInVpZCI6IlZvRGtOWiJ9.S2lf0gTewWYqdYi9nlcaVmmrEiLyW21kPZUy0L1TYvTBtklnUWnCEIjhgf5L4ZC4-f6ZjUGExHHUJpRjf7ZaEscMdtPq_c21N34k_A7usUMUatzFmjgyNQVjAsBDfbtvmuePmLkd4-B5rlD2YMmXV7JIv9eWUClDyVxbui7tZuNMUkrTEJrIbd3XKRB2OgsnUr2O9G5_Bn5BRZKEi0eSde7yPKqFfRxnMl-ixQzDODBxgi-G3yMrZm0DotxrIvDbKUuptSBEN9kZv2aMAUFfaAkjfMajIZrPez-JbBRhlpgoQ00rSuhk-LyVx4nzfDSgBFXsqsWeIkmgfvewhxpBfQ"},"__pay_stripe_public_key":"pk_live_2GndomDfiklqpSNQn8FrGuwZSMIMzha7DkLJqlYe7IR0ihKAlKdiHg68JJc5eVPt68rzAjzAAVXcUwjySHRCsgjQQ00gtRBUFNH","__pay_braintree_env":"production","__item":"{\"id\":55770344,\"user_id\":4559259,\"html\":\"\",\"css\":\"\",\"js\":\"\\/\\/p5js.org materials are what taught me this in their examples sections (https:\\/\\/p5js.org\\/examples\\/simulate-the-mandelbrot-set.html)\\nlet nIt = 50;\\nfunction setup() {\\n createCanvas(windowWidth, windowHeight);\\n pixelDensity(1);\\n \\n}\\nfunction draw() {\\n background(255);\\n loadPixels();\\n t = 0.5 * sin(frameCount \\/ 100) - cos(frameCount \\/ 100);\\n w = width \\/ 50;\\n h = height \\/ 50;\\n dx = w \\/ width;\\n dy = h \\/ height;\\n y = -h \\/ 2;\\n for (let j = 0; j < height; j++) {\\n x = -w \\/ 2;\\n for (let i = 0; i < width; i++) {\\n a = x * t;\\n b = y * t;\\n k = 0;\\n while (k < nIt) {\\n aa = a;\\n bb = b;\\n twoab = 3.0 * a * b;\\n a = a + b * b + (x * t) \\/ 2;\\n b = a * a + b + (y * t) \\/ 2;\\n if (dist(a, b, 0, 0) > 50) {\\n break;\\n }\\n k++;\\n }\\n pix = (i + j * width) * 4;\\n norm = map(k, 0, nIt, 0, 1);\\n rc = map(norm + t \\/ 5, 0, 1, 0, 105);\\n gc = map(norm, 0, 1, 0, 255);\\n bc = map(norm, 0, 1, 00, 255);\\n if (k == nIt) {\\n bright = 0;\\n } else {\\n pixels[pix + 0] = rc;\\n pixels[pix + 1] = gc;\\n pixels[pix + 2] = bc;\\n }\\n x += dx;\\n }\\n y += dy;\\n }\\n updatePixels();\\n}\\n\",\"html_pre_processor\":\"none\",\"css_pre_processor\":\"none\",\"js_pre_processor\":\"none\",\"html_classes\":\"\",\"css_starter\":\"neither\",\"js_library\":null,\"created_at\":\"2021-10-08T22:03:43.223Z\",\"updated_at\":\"2022-02-14T00:04:36.003Z\",\"title\":\"complexity\",\"description\":\"\",\"slug_hash\":\"LYjPvjj\",\"head\":\"\",\"private\":false,\"slug_hash_private\":\"11c00a4604703e2024ace5727ae590a7\",\"has_animation\":false,\"team_id\":0,\"css_prefix\":\"neither\",\"template\":false,\"parent_id\":0,\"comments_count\":0,\"custom_screenshot_filename\":null,\"loves_count\":0,\"pick\":false,\"popularity_score\":0,\"views_count\":0,\"pick_visible_at\":\"2022-11-08T22:42:55.128Z\",\"pen_hash\":null,\"hashid\":\"LYjPvjj\"}"}