This page must use the Rübÿ Spëëd Mëtäl Cödïng template!!!111
This commit is contained in:
parent
e29ac85ef5
commit
8ea2f5b0e5
|
@ -5,7 +5,6 @@ require 'socket'
|
||||||
SHRINK_X = 5
|
SHRINK_X = 5
|
||||||
SHRINK_Y = 10
|
SHRINK_Y = 10
|
||||||
Thread::abort_on_exception = true
|
Thread::abort_on_exception = true
|
||||||
|
|
||||||
current = ''
|
current = ''
|
||||||
current_lock = Mutex.new
|
current_lock = Mutex.new
|
||||||
Thread.new {
|
Thread.new {
|
||||||
|
@ -16,7 +15,6 @@ Thread.new {
|
||||||
d.algorithm = 'fstein'
|
d.algorithm = 'fstein'
|
||||||
d.brightness = 0.5
|
d.brightness = 0.5
|
||||||
d.gamma = 1.2
|
d.gamma = 1.2
|
||||||
|
|
||||||
loop do
|
loop do
|
||||||
f = vid.get_frame
|
f = vid.get_frame
|
||||||
cucul.dither_bitmap(0, 0, vid.width / SHRINK_X, vid.height / SHRINK_Y, d, f)
|
cucul.dither_bitmap(0, 0, vid.width / SHRINK_X, vid.height / SHRINK_Y, d, f)
|
||||||
|
@ -25,7 +23,6 @@ Thread.new {
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
s = TCPServer.new(2323)
|
s = TCPServer.new(2323)
|
||||||
while (c = s.accept)
|
while (c = s.accept)
|
||||||
puts "accepted #{c.peeraddr.inspect}"
|
puts "accepted #{c.peeraddr.inspect}"
|
||||||
|
@ -44,5 +41,8 @@ while (c = s.accept)
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
</source>
|
</source>
|
||||||
|
|
||||||
[[Category:Ruby]]
|
[[Category:Ruby]]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{{Rübÿ Spëëd Mëtäl Cödïng}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user