Method: AuthorEngine::Palette#draw_colors
- Defined in:
- lib/author_engine/palette.rb
#draw_colors ⇒ Object
89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/author_engine/palette.rb', line 89 def draw_colors @color_set.each_with_index do |row, i| row.each_with_index do |color, x| z = color == @active_color ? 100 : 7 Gosu.draw_rect( @x+(x*@size), @y+(@size*i), @size, @size, color, z ) end end end |