Skip to content

Instantly share code, notes, and snippets.

View shinokaro's full-sized avatar

shinokaro shinokaro

View GitHub Profile
require "dxruby"
f = Fiber.new do
loop do
8.times do
Fiber.yield 0 # alpha 透明度, 0は透明。試すなら128(半透明)が分かりやすい
Fiber.yield 255 # red
Fiber.yield 0 # green
Fiber.yield 0 # blue
end