{"__browser":{"country":"US","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 *; serial *; vr *; web-share *; xr-spatial-tracking *","iframe_sandbox":"allow-downloads allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"},"__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,"featureFlags":[],"teams":[],"__typename":"User"}}},"url":"https://codepen.io/graphql","api":"cprails"},"__user":{"anon":true,"base_url":"/anon/","cohorts":[],"current_team_hashid":null,"current_team_id":0,"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.eyJhdWQiOiJodHRwczovL2lkZW50aXR5dG9vbGtpdC5nb29nbGVhcGlzLmNvbS9nb29nbGUuaWRlbnRpdHkuaWRlbnRpdHl0b29sa2l0LnYxLklkZW50aXR5VG9vbGtpdCIsImNsYWltcyI6eyJvd25lcklkIjoiVm9Ea05aIiwiYWRtaW4iOmZhbHNlfSwiZXhwIjoxNzQ4MDg0MDAyLCJpYXQiOjE3NDgwODA0MDIsImlzcyI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInN1YiI6ImZpcmViYXNlLWFkbWluc2RrLThva3lsQGNvZGVwZW4tc3RvcmUtcHJvZHVjdGlvbi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsInVpZCI6IlZvRGtOWiJ9.sosIgnfZVwhIgh0otI2VPb-uLa9miG6Z0E7n8V6nd33L5L9HcRkpPfclHtVEZJPNm2y3QouQmlVeQu0wUPDxnIzo4RTOj6QskHN6M8lb5shGUWOcWFWGA4CuETnPztHI_x5xbPkOnPIhq5-vHcurHc9TpTrrDKE7GYLkI86CH4c1DG985yNbgX5T8CK-tvnml3wWs5jQ8t_y4iCUOrQORy1k2idapf4HWpdyFSNAP-marTotGmK_-giIQXjOKYf7bMPUQucyzN43TlpJVLXIPdTbvBope4FLzl9wKxpoivxgEP8vxg0IOlcDUoDdzX0a55GvYBuVvcbIQuH0KDtn1Q"},"__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\":1,\"pick\":false,\"popularity\":11,\"views_count\":62,\"pick_visible_at\":null,\"cpid\":\"017c61ee-f6f7-7f66-b9b6-4fd2389bfa7a\",\"is_new_editor_pen\":false,\"access\":\"Public\",\"pen_hash\":null,\"hashid\":\"LYjPvjj\"}"}