Skip to main content
← PSoXide SDK guides and examples · SDK f2fec1c301f1 · All Cargo features enabled; check feature gates before use.

draw_rect_flat

Function draw_rect_flat 

Source
pub fn draw_rect_flat(x: i16, y: i16, w: u16, h: u16, r: u8, g: u8, b: u8)
👎Deprecated:

use gpu.draw(&QuadFlat::rect(origin, size, color))

Expand description

Fill an axis-aligned rectangle with a flat color, as a polygon.