Class SDL::Palette
In: lib/ruby-sdl-ffi/sdl/video.rb
Parent: NiceFFI::Struct

Methods

at   each  

Included Modules

Enumerable

Public Instance methods

Returns the color at the given index in the palette, as an SDL::Color instance.

Yields an SDL::Color for each color in the palette.

[Validate]