module RaylibAdditions

Overview

Additions to help wa-cr with graphical conversions using Raylib

To use these additions, just require it:

require "wa-cr/raylib"

Here's some examples of this addition:

require "wa-cr/raylib"

# Gets the palette to use for the images
palette = myw_ad.playpal.palettes[0]

my_wad.get_texture("NameOfTexture", palette) # => Raylib::Image

my_graphic.to_image(palette) # => Raylib::Image

# You can also get pixel data from the image
my_graphic.get_pixel(x, y, palette) # => Raylib::Color

my_flat.to_image(palette) # => Raylib::Image

my_flat.get_pixel(x, y, palette) # => Raylib::Color

Defined in:

raylib.cr