0,ÿÿÿ±>Sï}WÿÍu§ðp8·d%qy)6o;]ÉA¦ösï÷ôôô”°ÂVl†31 âÀ4àîàîàîîîàîàîîàîîîàîàîîàîîàîàîàîîîààîàîîîîàîîàîàîàîîàîîîàîàîààîîîîîàîîààîààîàààîîàîîààîîîîîîàîààîîàîîàîîàîîîîîàîîîîîîààîîîàîîààîàîîàààîîîîàààîîîààîîîîàîààîàîîàîàîîàîîîààîàîîàîîààîîîîàààîîîîàîîàîàîàààîààîààààààîàîîàîîààîîîîîîàîîààîîîàîîîàîàîàîîîîîàîààîî"""""""""îîàîààîîîî"""433àîîîàîîàîàîàîîàî3333î3333àî0îîàîàîîîàîîîàîàîàîîîàîàîààîîîàîîîîîàîàîîàîîààîàîàîîààîîîàîîààîààààîîîàîîàîàîàîîàîàîàîîîîîààîàîààîàîàîàîàîîîîîîàîàîàîîàîàààîîîîîîîàîàîîààîîîîààîîîîîàîîîîîàîàîîàîàîàîààîî·-- title: double pendulum rotation -- author: commensalism -- desc: yt shorts -- license: MIT License (change this to your license of choice) -- version: 1.0 -- script: lua -- input: gamepad local a1 = 0 local a2 = 0 local ch = 8 local cl = true local cur = 1 local function cos(n) return math.cos(n*0.01)--math.sin(n * 180/math.pi) end local function sin(n) return math.sin(n*0.01)--math.sin(n * 180/math.pi) end local pxls = {} local opt = {-4, -3, -2, -1, 0.25, 0.5, 0.75, 1, 2, 3, 4, 5, 3.141593, 1.6180342} function TIC() cls(0) if btnp(0) then if ch > 1 then ch = ch - 1 cur = opt[ch] if cl then pxls = {} a1 = 0 a2 = 0 end end end if btnp(1) then if ch < 14 then ch = ch + 1 cur = opt[ch] if cl then pxls = {} a1 = 0 a2 = 0 end end end if btnp(2) then cur = cur - 0.25 if cl then pxls = {} a1 = 0 a2 = 0 end end if btnp(3) then cur = cur + 0.25 if cl then pxls = {} a1 = 0 a2 = 0 end end if btnp(4) then cl = not cl end endx = cos(a1)*25 + 120 endy = sin(a1)*25 + 68 finx = cos(a2 + a1)*25 + endx finy = sin(a2 + a1)*25 + endy table.insert(pxls, {finx, finy}) line(120, 68, endx, endy, 2) line(endx, endy, finx, finy, 3) pix(endx, endy, 4) for _, i in ipairs(pxls) do pix(i[1], i[2], 1) end toprint = "current: " .. cur .. "\n\n" for k, i in ipairs(opt) do if k == ch then toprint = toprint .. i .. "<\n" else toprint = toprint .. i .. "\n" end end toprint = toprint .. "\narrow keys\nto change\n\nz/a to\ntoggle cls" if cl then toprint = toprint .. "\n\ncls: on" else toprint = toprint .. "\n\ncls: off" end print(toprint, 0, 0, 14) a1 = a1 + 1 a2 = a2 + cur end