Module: Gosu

Included in:
GamesParadise::Billiard::GameWindow, GamesParadise::Shoot, MovingTriangle
Defined in:
lib/games_paradise/modifications/gosu/font.rb,
lib/games_paradise/modifications/gosu/gosu.rb,
lib/games_paradise/gui/gosu/books/additions.rb,
lib/games_paradise/modifications/gosu/image.rb,
lib/games_paradise/modifications/gosu/window.rb,
lib/games_paradise/modifications/gosu/colours.rb

Overview

#

require ‘games_paradise/modifications/gosu/colours.rb’

#

Defined Under Namespace

Classes: Font, Image, Window

Constant Summary collapse

COLOUR_WHITE =
#

COLOUR_WHITE

#
0xffffffff
COLOUR_BLACK =
#

COLOUR_BLACK

#
0xff000000
COLOUR_NONE =
#

COLOUR_NONE

#
0x00000000
COLOUR_GRAY =
#

COLOUR_GRAY

#
0xff808080
COLOUR_AQUA =
#

COLOUR_AQUA

#
0xff00ffff
COLOUR_RED =
#

COLOUR_RED

#
0xffff0000
COLOUR_GREEN =
#

COLOUR_GREEN

#
0xff00ff00
COLOUR_BLUE =
#

COLOUR_BLUE

#
0xff0000ff
COLOUR_FUCHSIA =
#

COLOUR_FUCHSIA

#
0xffff00ff
COLOUR_CYAN =
#

COLOUR_CYAN

#
0xff00ffff
COLOUR_STEELBLUE =
#

COLOUR_STEELBLUE

This is #4682b4 colour, with a RGB value of 70,130,180.

#
0xff4682b4
COLOUR_YELLOW =
#

COLOUR_YELLOW

#
0xffffff00
COLOUR_GOLD =
#

COLOUR_GOLD

This is #d4af37 colour.

#
0xffd4af37

Instance Method Summary collapse

Instance Method Details

#gosu_tilable_image(path) ⇒ Object

#

gosu_tilable_image

This variant is for making tileable images in gosu.

#


24
25
26
# File 'lib/games_paradise/modifications/gosu/gosu.rb', line 24

def gosu_tilable_image(path)
  ::Gosu::Image.new(path, tileable: true)
end