Method: MiniGL::Rectangle#initialize
- Defined in:
- lib/minigl/global.rb
#initialize(x, y, w, h) ⇒ Rectangle
Creates a new rectangle.
Parameters:
- x
-
The x-coordinate of the rectangle.
- y
-
The y-coordinate of the rectangle.
- w
-
The width of the rectangle.
- h
-
The height of the rectangle.
110 111 112 |
# File 'lib/minigl/global.rb', line 110 def initialize(x, y, w, h) @x = x; @y = y; @w = w; @h = h end |