Chuchu
Rabbit
Yellowknife, Northwest Territories, Canada
if you dont like my bunny, go away :griefer:
if you dont like my bunny, go away :griefer:
艺术作品展柜
My Pilot
126 25 2
最喜爱的游戏
1,121
已游戏的小时数
101
已达成的成就数
My Favourite Lua Code
-- open problem: How do you bounce a point in a circle without edge detection? Current solution is incomplete, have yet to modulo theta.

local function polarCoords(x, y)
return math.sqrt(x*x + y*y), math.atan2(y, x)
end

local function cartCoords(r, theta)
return r*math.cos(theta), r*math.sin(theta)
end

local function computeCoords(x,y)
local r, theta = polarCoords(x, y)
r = (((r + rMax/2) % rMax) - (rMax/2)) * ((math.floor((r+rMax/2)/rMax) % 2) * -2 + 1)
x, y = cartCoords(r, theta)
return x, y, r, theta
end


local function getDotAlpha()
local scale = math.max(steps/75, 1)
local alpha = (_G.totalDelta % scale)/scale
return math.clamp(alpha, 0, 1)
end

local function renderSignalCartesian()
love.graphics.setColor(1, 1, 1)
love.graphics.circle("line", offsetX, offsetY, rMax/2)

local distance = 360*rotations
for i=steps, 1, -1 do
local alpha = (i-1)/(steps-1)
local x0, y0 = pos[1] + vector[1] * alpha * distance, pos[2] + vector[2] * alpha * distance
local x, y, _, _ = computeCoords(x0, y0)

love.graphics.setColor(fade, (1 - alpha) * fade, fade)
love.graphics.circle("fill", x0 + offsetX, y0 + offsetY, 2) -- faded line
love.graphics.setColor(1, 1 - alpha, 1)
love.graphics.circle("fill", x + offsetX, y + offsetY, 2) -- actual line

love.graphics.setColor(1, 0, 1)
love.graphics.circle("fill", signalWidth*alpha + offsetX*2, x + offsetY, 2)
love.graphics.setColor(1, 1, 0)
love.graphics.circle("fill", signalWidth*alpha + offsetX*2, y + offsetY, 2)
end

local x0, y0 = pos[1] + vector[1] * getDotAlpha() * distance, pos[2] + vector[2] * getDotAlpha() * distance
local x, y, _, _ = computeCoords(x0, y0)
love.graphics.setColor(1, 0, 0)
love.graphics.circle("fill", x + offsetX, y + offsetY, 5)
love.graphics.circle("fill", getDotAlpha() * signalWidth + offsetX*2, x + offsetY, 5)
love.graphics.circle("fill", getDotAlpha() * signalWidth + offsetX*2, y + offsetY, 5)
end

-- Check my Github for a method to compute a point within a square without edge detection.
最新动态
总时数 540 小时
最后运行日期:5 月 3 日
总时数 33 小时
最后运行日期:5 月 2 日
总时数 342 小时
最后运行日期:4 月 30 日
2025 年 10 月 4 日 下午 5:49 
he was so ass too
2025 年 10 月 3 日 下午 3:32 
that viscous had 280 hours in game, LOL
2025 年 9 月 30 日 下午 1:31 
-rep 10 stacks on mina at 30 minutes
2025 年 9 月 30 日 下午 1:31 
-rep ♥♥♥♥ ass rabbit
2025 年 7 月 22 日 上午 1:07 
who sketched ur pfp i like it :SMT5V_Decarabia:
2025 年 7 月 20 日 上午 3:45 
+rep good profile, clutch player, include me