Chuchu
Rabbit
Yellowknife, Northwest Territories, Canada
if you dont like my bunny, go away :griefer:
if you dont like my bunny, go away :griefer:
Artwork Showcase
My Pilot
126 25 2
Favorite Game
1,146
Hours played
113
Achievements
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.
Recent Activity
16 hrs on record
last played on Nov 16
932 hrs on record
last played on Nov 14
48 hrs on record
last played on Nov 13
Oct 29 @ 8:38am 
ez
Oct 29 @ 7:50am 
Typical obnoxious loser
Sep 22 @ 10:00pm 
+rep probably the most racist bebop main I have ever met. eugenics, nose length, skull size, the entire shebang... i think he called stephen hawking a jew at least three times. bro may have been on the island but i don't think thats the right slur to use here
Sep 21 @ 10:04pm 
possibly the worst mo and krill player i've ever met
Aug 29 @ 4:03am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
Aug 29 @ 4:03am 
Idk. Idk man