Updated recorder to only send every 2nd frame, to clear the window when selecting a new effect, doubled the resizing factor and re-enabled gifsicle.
This commit is contained in:
@@ -10,7 +10,7 @@ PORT = 2122
|
||||
FILE = ARGV[1] or raise "No filename given"
|
||||
EFFECT = ARGV[2]
|
||||
FRAMES = 125
|
||||
FACTOR = 1
|
||||
FACTOR = 2
|
||||
delay = 50
|
||||
|
||||
puts "Connecting to #{IP}:#{PORT}..."
|
||||
@@ -59,7 +59,6 @@ while gif.length < FRAMES do
|
||||
last_id = id
|
||||
|
||||
img = Image.new(dim_x, dim_y)
|
||||
img.delay = 1
|
||||
gc = Draw.new
|
||||
|
||||
#next
|
||||
@@ -81,6 +80,7 @@ s.close
|
||||
puts
|
||||
puts "Generating gif..."
|
||||
gif.ticks_per_second = 100
|
||||
gif.delay = 4
|
||||
gif.write(FILE)
|
||||
puts
|
||||
puts
|
||||
|
Reference in New Issue
Block a user