{"id":9825,"student_id":10,"content":"setBackdrop(\"black\");\n\nvar lights = [];\n\nwhen('click', function () {\n\n var color = 'rgb(' + Math.floor(Math.random()*255) + ',' + Math.floor(Math.random()*255) + ',' + Math.floor(Math.random()*255) + ')';\n\n for(var i=0; i\u003c100; i++) {\n var light = {\n x: cursor.x,\n y: cursor.y,\n vx: Math.random()*8 - 4,\n vy: Math.random()*8 - 4,\n color: color,\n life: Math.random()*100\n }\n lights.push(light);\n }\n\n});\n\n\nforever(function(){\n\n for(var i=0; i\u003clights.length; i++) {\n var light = lights[i];\n light.x += light.vx;\n light.y += light.vy;\n light.vy += 0.1;\n light.life--;\n\n if(light.life \u003c 0) {\n lights.splice(i, 1);\n i--;\n }\n }\n\n for(var i=0; i\u003clights.length; i++) {\n var light = lights[i];\n pen.size = 0;\n pen.fillColor = light.color;\n pen.drawCircle(light.x, light.y, 6*light.life/100);\n }\n});\n\n","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-11-08T05:30:42.784+08:00","name":"克里斯煙火秀","language":"javascript","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/9825/e7e8cc774c5147d2bf4142074168dd59.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":598,"hashid":"4y3sgg9n","is_content_changed":false,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":217830,"file_name":"0.png","project_id":9825,"asset_id":6,"created_at":"2017-08-23T15:30:31.018+08:00","updated_at":"2017-08-23T15:30:31.018+08:00"},{"id":217831,"file_name":"1.svg","project_id":9825,"asset_id":7,"created_at":"2017-08-23T15:30:31.021+08:00","updated_at":"2017-08-23T15:30:31.021+08:00"},{"id":217832,"file_name":"2.png","project_id":9825,"asset_id":8,"created_at":"2017-08-23T15:30:31.023+08:00","updated_at":"2017-08-23T15:30:31.023+08:00"},{"id":217833,"file_name":"0.wav","project_id":9825,"asset_id":9,"created_at":"2017-08-23T15:30:31.025+08:00","updated_at":"2017-08-23T15:30:31.025+08:00"},{"id":217834,"file_name":"1.wav","project_id":9825,"asset_id":10,"created_at":"2017-08-23T15:30:31.027+08:00","updated_at":"2017-08-23T15:30:31.027+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦