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:
2019-09-25 06:09:00 +02:00
parent 571ae26c25
commit 792354e371
4 changed files with 11 additions and 5 deletions

View File

@@ -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