- linegc = Magick::Draw.new
- linegc.stroke_linejoin("miter")
- linegc.stroke_width(1)
- linegc.stroke("#BBBBBB")
- linegc.fill("#BBBBBB")
-
- highlightgc = Magick::Draw.new
- highlightgc.stroke_linejoin("miter")
- highlightgc.stroke_width(3)
- highlightgc.stroke("#000000")
- highlightgc.fill("#000000")
-
- images = Array(frames) do
- Magick::Image.new(width, height) do |image|
- image.background_color = "white"
- image.format = "GIF"
+ frames = []
+
+ (0...nframes).each do |n|
+ frames[n] = GD2::Image::IndexedColor.new(width, height)
+ black = frames[n].palette.allocate(GD2::Color[0, 0, 0])
+ white = frames[n].palette.allocate(GD2::Color[255, 255, 255])
+ grey = frames[n].palette.allocate(GD2::Color[187, 187, 187])
+
+ frames[n].draw do |pen|
+ pen.color = white
+ pen.rectangle(0, 0, width, height, true)