Skip to content

@ruprict /gist:1726900
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
ROFLBALT Renderable
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.