MCPcopy Create free account
hub / github.com/17cupsofcoffee/nova / new

Method new

src/graphics/batch.rs:23–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22impl DrawParams {
23 pub fn new() -> DrawParams {
24 DrawParams {
25 color: Color::WHITE,
26 origin: Vec2::ZERO,
27 scale: Vec2::ONE,
28 rotation: 0.0,
29 flip: BVec2::FALSE,
30 }
31 }
32
33 pub fn color(mut self, color: Color) -> Self {
34 self.color = color;

Callers

nothing calls this directly

Calls 1

set_indicesMethod · 0.80

Tested by

no test coverage detected