| 赞 | 62 |
| VIP | |
| 好人卡 | |
| 积分 | 65 |
| 经验 | |
| 最后登录 | 2025-2-24 |
| 在线时间 | 1275 小时 |
百合控
- 梦石
- 0
- 星屑
- 6548
- 在线时间
- 1275 小时
- 注册时间
- 2013-8-21
- 回帖
- 3522

|
发表于 2014-9-6 22:05:13
|
显示全部楼层
- s = Sprite.new
- s.bitmap = Bitmap.new Graphics.width, Graphics.height
- s.bitmap.fill_rect s.bitmap.rect, Color.new(255, 255, 255, 255)
- x = Bitmap.pixelMap "." => Color.new(255, 155, 225, 255) do
- ",...,,,.,,.,,,.,.,.,,.,.,".each_char.each_slice(5).map{|t|t.join}.join "\n"
- end
- s.bitmap.blt 1, 1, x, x.rect
- s.zoom_x = s.zoom_y = 50
- [Graphics, Input, s].each &:update until false
复制代码 |
|