Sha256: db00b97682b6ff6040304761097ed06b6a626d90396623c5a9cc83db269629c9
Contents?: true
Size: 341 Bytes
Versions: 4
Compression:
Stored size: 341 Bytes
Contents
# -*- coding: utf-8 -*- module DXRubySDL module Color module_function def to_sdl_color(color) if color.length == 4 return color[0..2] else color end end def to_sdl_alpha(color) if color.length == 4 return color[3] else return 255 end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dxruby_sdl-0.0.4 | lib/dxruby_sdl/color.rb |
dxruby_sdl-0.0.3 | lib/dxruby_sdl/color.rb |
dxruby_sdl-0.0.2 | lib/dxruby_sdl/color.rb |
dxruby_sdl-0.0.1 | lib/dxruby_sdl/color.rb |