Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

ROFLBALT Renderable

View gist:1726900
1 2 3 4 5 6 7 8 9 10 11 12
module Renderable
def each_pixel ticks
(y...(y + height)).each do |y|
(x...(x + width)).each do |x|
rx = x - self.x
ry = y - self.y
yield x, y, pixel(x, y, rx, ry, ticks)
end
end
end
def right_x; x + width end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.