class Raylib::Color

Public Class Methods

from_u8(r = 0, g = 0, b = 0, a = 255) click to toggle source

Color helper

# File lib/raylib.rb, line 46
def Color.from_u8(r = 0, g = 0, b = 0, a = 255)
  instance = Color.new
  instance[:r] = r
  instance[:g] = g
  instance[:b] = b
  instance[:a] = a
  return instance
end