Skip to main content

set_object_colors

Function set_object_colors 

Source
pub fn set_object_colors(access: Access<'_>, palette: u8, colors: &[Color; 4])
Available on crate feature cgb only.
Expand description

Set one object palette.

Its first colour is never drawn: index 0 is transparent for objects.

ยงPanics

If palette is PALETTES or beyond.