Documentation::D_Cheatsheet::C_RaylibAdditions
- Raylib:
RaylibAdditions- The module housing all of the raylib methodsRaylibAdditions::WAD#get_texture(name, palette)- Gets a texture from aWAD's texture map and creates aRaylib::Imageby using the paletteRaylibAdditions::WAD#export_texture(name, filename, palette)- Exports a texture from theWAD's texture map as a png by using the paletteRaylibAdditions::GraphicClassMethods.from_png(filename, palette, offset)- Imports a png as aWAD::Graphicgiven the palette and the offsetRaylibAdditions::GraphicClassMethods.from_image(image, palette, offset)- Converts aRaylib::Imageto aWAD::Graphicgiven the palette and the offsetRaylibAdditions::Graphic#to_image(palette)- Converts a graphic to aRaylib::Imageby using the paletteRaylibAdditions::Graphic#get_pixel(x, y, palette)- Gets a Raylib::Color at the graphic pixel x, yRaylibAdditions::Graphic#to_png(filename, palette)- Exports the graphic to a png given the filename and paletteRaylibAdditions::FlatClassMethods.from_png(filename, palette)- Imports an opaque 64x64 png as aWAD::Flatgiven the paletteRaylibAdditions::FlatClassMethods.from_image(image, palette)- Converts an opaque 64x64Raylib::Imageto aWAD::Flatgiven the paletteRaylibAdditions::Flat#to_image(palette)- Converts a flat to aRaylib::Imageby using the paletteRaylibAdditions::Flat#get_pixel(x, y, palette)- Gets a Raylib::Color at the flat pixel x, yRaylibAdditions::Flat#to_png(filename, palette)- Exports the flat to a png given the filename and palette
- Raylib - The Raylib github
- Raylib-cr - The Crystal C-Bindings for Raylib