Sha256: 0575f3e7d8a32c9ac6af298e35f1a725251ce21575097e93135ac55b7b6e2262
Contents?: true
Size: 578 Bytes
Versions: 43
Compression:
Stored size: 578 Bytes
Contents
proc_name = "headline-logo" if @headline_logo_image.nil? theme_exit("must specify @headline_logo_image!!") end match("**", HeadLine) do |heads| loader = ImageLoader.new(find_file(@headline_logo_image)) heads.each do |head| head.delete_pre_draw_proc_by_name(proc_name) head.delete_post_draw_proc_by_name(proc_name) head.add_pre_draw_proc(proc_name) do |canvas, x, y, w, h, simulation| if simulation loader.resize(nil, head.height) else loader.draw(canvas, x + w - loader.width, y) end [x, y, w, h] end end end
Version data entries
43 entries across 43 versions & 1 rubygems